Hii, I’m currently doing the Codecademy “if…else” statement task - the code works fine, I’m just a little confused about one thing…
Why do I have to have to set let sale = true;, only to change it right after to “false”?
let sale = true;
sale = false;
I’ve gotten rid of sale = false; and it still works perfectly. Why do I need to set a value only to instantly change it?
Why can’t I make the sale false to begin with?
Thank you so much in advance! My brain is dying with this lol