3 ms·
It makes no difference but for some reason I feel the urge to shorten the last line to: lightsOn = !lightsOn; I'll see myself out.
by have_faith 11y ago
It makes no difference but for some reason I feel the urge to shorten the last line to:
lightsOn = !lightsOn;
I'll see myself out.
- polishninja 11y agoDon't forget to turn off the light on your way out. lightsOn = !lightsOn || lightsOn
- Cshelton 11y agoEvery time I write that in JavaScript, I delete it and just use ! As well haha