Please can someone explain to me why the statements are contradicting? let sale=true (means sale is true) but then we put another line sale being false? I am slightly confused, tried to run the code as if let sale = false, sale = true, that case it still runs the case as "Time to buy" even though variable says that sale is false? (The given code is below)
let sale = true;
sale = false;
if(sale) {
console.log('Time to buy!');
} else {
console.log ('Time to wait for a sale.')
}