Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Froot75397yI see posts like these too often.
Do you guys not use a decent IDE or linting plugins for your text editor? Stuff like that should stand out the moment you write it -
How does this happen? If the most basic ide throws warnings about this kinda stuff
-
@inukinator JS uses type coercion, so 1 == '1' will evaluate to true. Whereas 1 === '1' will be false. Type coercion, is terrible and unpredictable
30 min figuring out what happen to my code. And realize that = is used in if statement instead of ==.
Thanks brain
undefined