yeah, bitch

https://void.cat/d/XnUgogSynFXAHA6JpPe9Pv.webp

Reply to this note

Please Login to reply.

Discussion

πŸ™„ JavaScript.

JavaScript πŸ˜‚πŸ˜…

Not the same object

Good, cause JS does a reference comparison

I understand why it doesn't work

but this is clearly not what a developer intends to do

and javascript is not a low-level language where you must work around physical constraints

Now do NaN === NaN 😁

my computer exploded and it's all your fault

😁

Hahaha

This guy, officer πŸ‘†

If you see a dev not understanding JS comparison operators, kindly point them to this superb free book:

https://github.com/getify/You-Dont-Know-JS/blob/1st-ed/README.md

πŸ˜…

JSON.stringify({}) === JSON.stringify({})

This is completely correct.

Ref vs value, right?

maybe they'll add a ==== comparison in next js!

Next level thinking

that's why i am a c++ developer, our world is complicated, but it is straight forward complicated.