Debugging - Catch Use of Assignment Operator Instead of Equality Operator

Tell us what’s happening:

im pretty sure i got the answer, i even double checked with other people but the quiz keeps telling me im wrong

Your code so far

let x = 7;
let y = 9;
let result = "to be determined";

// Only change code below this line
if (x === y) {
  result = "x and y are equal";
} else {
  result = "x and y are not equal";
}

console.log(result);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/151.0.0.0 Safari/537.36

Challenge Information:

Debugging - Catch Use of Assignment Operator Instead of Equality Operator

GitHub Link: freeCodeCamp/curriculum/challenges/english/blocks/debugging/587d7b85367417b2b2512b38.md at main · freeCodeCamp/freeCodeCamp · GitHub

Welcome to the forum @brad12kool,

It looks like you may have changed the starting code in areas you were not asked to change, which will cause the tests to fail. Please click the reset button to restore the original code and try again being careful to make only the change needed for this code to read the else statement.

image

There is a more current JavaScript curriculum available here: JavaScript Certification | freeCodeCamp.org

Happy coding

is there any reason why you changed these lines?