Can't find the error in 17!


#1

It drives me crazy as I just can't see the error in my code and yet it says "SyntaxError: Unexpected token =". Whyyyy?

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

#2

for something to equal another you either need = or === so you are one too many = :smiley:


#3

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