Tell us what’s happening: The function isn’t working. I check it from many sides and still doesn’t run the test correctly.
Your code so far
// Setup
function testEqual(val) {
if (val == 12); { // Change this line
return "Equal";
}
return "Not Equal";
}
console.log (testEqual(10));
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36
.
Challenge: Comparison with the Equality Operator
Link to the challenge: