What is the name of “===” operator in JavaScript

跟風遠走 提交于 2021-01-29 04:51:04

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!