Haradzieniec
Haradzieniec

Reputation: 9340

What does ===! operator in JS mean?

What does ===! operator in JS mean?

Just checked in the browser console,

5 ===! 5  //false
5 ===! 6  //false
5 ===! 7  //false

What's the meaning of ===! ? Yes, three equal signs and exclamation sign thereafter. Thank you.

Or, 5 ===! 5 is treated as 5 === false ?

Upvotes: 0

Views: 1228

Answers (1)

Bergi
Bergi

Reputation: 664346

It's not an operator, it's two of them. It is parsed as 5 === (!5), whitespace is ignored between tokens.

Upvotes: 12

Related Questions