问题
I was wondering if there is widely recognized name for ===
operator. Something like "IIFE" for (function () {})();
回答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:...
回答2:
its commonly referred to as strict equals
来源:https://stackoverflow.com/questions/33526533/what-is-the-name-of-operator-in-javascript