Skip to content Skip to sidebar Skip to footer

What Is The Name Of "===" Operator In Javascript

I was wondering if there is widely recognized name for === operator. Something like 'IIFE' for (function () {})();

Solution 1:

I was wondering if there is widely recognized name for === operator.

The names I've heard most commonly are strict equality operator and strict equals operator. And it turns out that arguably, it has both those names:

The old spec called it the strict equals operator:

11.9.4 The Strict Equals Operator ( === )

The production EqualityExpression : EqualityExpression === RelationalExpression is evaluated as follows: ...

Oddly, it's never actually named in the new spec, but the closest is here:

7.2.13 Strict Equality Comparison

The comparison x === y, where x and y are values, produces true or false. Such a comparison is performed as follows:...

Solution 2:

its commonly referred to as strict equals

Post a Comment for "What Is The Name Of "===" Operator In Javascript"