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
-
urco21728yIn many languages is implemented the === (JS, PHP, Ruby) @GC97 and basically means that is comparing the Class and the value, so it might be cases that you want to compare only the values @GurpreetSK95
-
So much garbage in this language, I don't know why everyone has such a hard on for it.
-
arekxv10548y@urco Or you can just learn about implicit type conversion which happens in almost all dynamic languages. Its better when you understand why something is happening than just putting it up as "oh its just the language X acting all rowdy today") :)
Javascript is so funny
"0" == 0 //true
"" == 0 //true
"0" == "" //false
Always remember the ===
Realize this took me an hour of debugging
undefined
javascript