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
-
Had to giggle cus spongebob.
Had to supress triggering cus whining about weak check doing type correction so your NUMBERS (get that integer/float difference shit outta here) are the friggin same and thats why you do strict check with 3 of those equal signs. And before anybody tells me how dumb that is, pls take a look at some good old pascal using fucking := for assignment, thanks.
Had fun overall, take a ++. -
Root797677y@devios1 All variables are created equal, but some are more equal than others?
Oh dear...
Are we going to have a problem with the pigs now? -
In JavaScript terms, == compares values, and === compares values and types. I like Patrick Star, I do not like memes.
-
@irene well it makes sense im OO languages to differ between "is exact same ressource (reference)" or "is thingy with sameish value".
But in js that stuff is kinda weird, i have to admit this. -
@irene nah thats not what i meant, you are completely right.
I mean more like {prop:33} equals {prop:33}. Reference-wise they aren't equal. But value-wise they are. -
Loose equality (==) will first convert one of the two operands to a common type and then will perform a Strict equality operation as usual.
https://developer.mozilla.org/el/... -
Related Rants
Bring the funny...
joke/meme
false
bob
funny
sponge