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: