I tried and I solve it!!!
There it’s my js code! lol…
// Complete the compareTriplets function below.
function compareTriplets(a, b) {
var result = [0, 0];
for (let i = 0; i < a.length; i++) {
if (a[i] > b[i]) {
result[0] += 1;
} else if (a[i] < b[i]) {
result[1] += 1;
} else if(a[i] = b[i]) {
console.log("don't know what to write in there")
}
}
return result;
}
This is not a comparison, that is the assignment operator =, you want to use == or ===. Also you could have just used else {...}, or just nothing as you don’t have to do anything in that case