Why is my code wrong?

What is wrong with my code? I can understand why the interface mark the exercise wrong.

I got this to work by using “if (sale === true)” and by capitalizing the ‘T’.

let sale = true
if (sale === true) {
console.log(‘Time to buy!’)
}

This was a tricky one, but in the next exercise, it gives you the correct code:

let sale = true;
sale = true;
if(sale) {
console.log(“Time to buy!”);
}

1 Like