0

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 ?

Haradzieniec
  • 9,086
  • 31
  • 117
  • 212

1 Answers1

11

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

Bergi
  • 630,263
  • 148
  • 957
  • 1,375