Andrea Koutifaris
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.

--

--

Andrea Koutifaris
Andrea Koutifaris

Responses (1)