1 min readJun 26, 2018
I would add the 6th common mistake:
console.log('' == false); // will print true
So, not every string is true, an empty string is false… Which suggests that the first point is a bad practice, and should be avoided.
I would add the 6th common mistake:
console.log('' == false); // will print true
So, not every string is true, an empty string is false… Which suggests that the first point is a bad practice, and should be avoided.
Front-end developer and author Occulto Game. https://www.sirioartgames.com/