Cross Code
43 subscribers
233 photos
28 videos
1 file
125 links
Everyone has a channel now why not me ig.
Expect dev and gaming stuff.
In-joy

Discussions here - https://t.me/+CkXl8tSd-Ds0YmVk
Download Telegram
Lies the `===` operator tell. JS👽

=== ( “strict equality” ) operator has some nuances. The === operator is designed to lie in two cases of special values: NaN and -0.

Consider:


NaN === NaN;                //false
0 === -0 //true



You could use 0 === -0 intentionally in your program for whatever reason. ( I know you lot are weird )

How to avoid deez pitfalls:

1. Use Number.isNaN(..) for NaN checks.
2. Use Object.is(..) for -0 comparisons (and for NaN too).

Object.is(..) in action:

console.log(Object.is('1', 1));
// Expected output: false

console.log(Object.is(NaN, NaN));
// Expected output: true

console.log(Object.is(-0, 0));
// Expected output: false

const obj = {};
console.log(Object.is(obj, {}));
// Expected output: false

Think of Object.is(..) as the “quadruple-equals” ====, the really-really-strict comparison!😉

#JS
Skywalker Leul
https://youtube.com/shorts/lz1O-rUes-s?si=RFJ6gsm8_JL_jemZ
The man was already retired gymnast in 2004. Damn. Their levels to this shit. 🐐🐐🐐
Forwarded from Troll Football
women ☕️
👎1
Biggest W in a while bro. More people need to read this book

#books
Gonna start watching Miss Kobayashi's Dragon Maid
This media is not supported in the widget
VIEW IN TELEGRAM
ASCII is really cool. Wanna do something with it but gotta some skill issues 🥹
changing the font of my terminal to this just for lols
wiw
Yamal🔥🔥🔥🔥🔥🔥
¡Olé! ¡Olé! ¡Olé! ¡Olé! ¡Olé! ¡Olé! ¡Olé! ¡Olé! ¡Olé! ¡Olé! ¡Olé! ¡Olé!
shite
photo shows that at the moment of the shot, the ex-president turned to the right. And the bullet, which could have hit the head, only hit the right ear .
me whenever I have exams
🤣2