JS - Debugging - What am I doing wrong here?


#1

if ("10" === 10){
console.log ("You Got a true!");
} else {
console.log ("You got a false!");
}

It's telling me "You got a false!" I've tried refreshing, as was suggested somewhere else, but no luck. How do I pass go? Thanks in advance!

I keep getting this message:

Oops, try again.
It looks like your if/else didn't log 'You got a true!' to the console.


#2

if ("10" === 10) //wrong
if ("10" === "10") // right

:slight_smile:


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.