Nadeem Malik
Nadeem Malik

Reputation: 51

What is this "triple not equal" operator and how can I type it?

I have attached a screenshot with a red circle. What is this operator? How can I type it?

code with a circled "triple not equal" symbol

Upvotes: 3

Views: 1286

Answers (1)

Tom
Tom

Reputation: 9167

That is the not-identical / strict-inequality operator

It is written like so: !==

It returns true if the operands are different in value or type.

The reason it looks like it does in your editor is because you have font ligatures turned on. Font ligatures may look nice, but they create exactly this problem: they disguise the actual characters of the source code, leading to confusion.

VS Code lets you turn them off, and you should. Go to settings and search for "ligatures".

Upvotes: 2

Related Questions