“console.log” show my all condition are true, that means “Equal, Equal, Not Equal, Not Equal, Not Equal.” Last three condition are showing correct but why am showing first two condition are not correct.
No, it is not correct to change the function signature. The code specifically only wants you to change one line.
// Setup
function testNotEqual(val) {
// DO NOT CHANGE ANYTHING EXCEPT FOR THIS LINE
if (val) { // Change this line
// DO NOT CHANGE ANYTHING EXCEPT FOR THIS LINE
return "Not Equal";
}
return "Equal";
}
testNotEqual(10);