Debugging - Catch Use of Assignment Operator Instead of Equality Operator

Tell us what’s happening:
Where am I going wrong with my code?
According to all the other posts this should be correct?
Your code so far
let x = 7;
let y = 9;
let result = “to come”;

if(x == y) {
result = “Equal!”;
} else {
result = “Not equal!”;
}

console.log(result);

let x = 7;
let y = 9;
let result = "to come";

if(x == y) {
  result = "Equal!";
} else {
  result = "Not equal!";
}

console.log(result);

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36

Challenge: Debugging - Catch Use of Assignment Operator Instead of Equality Operator

Link to the challenge:

The code pasted above in the gray box is passing for me. Try resetting the challenge and reloading the entire page. Or maybe try a different browser. Just guessing here. This code should pass.

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