In JavaScript, what does the === operator check?
AnswerEquality of value and type, without type conversion
Strict equality (===) returns true only if both operands have the same type and value; == may convert types first.
Coding · Facts & stats
7 fact-checked facts about JavaScript, each with the reason behind it. 5 more are in today's round and join this page after it closes.
AnswerEquality of value and type, without type conversion
Strict equality (===) returns true only if both operands have the same type and value; == may convert types first.
Answer3
An array's length property gives the number of elements, here three.
Answer"53"
When one operand of + is a string, JavaScript converts the other to a string and joins them.
AnswerECMAScript
JavaScript is standardised by Ecma International as ECMAScript, specified in ECMA-262.
AnswerA TypeError is thrown
const creates a binding that cannot be reassigned; attempting it throws a TypeError.
Answerfalse
NaN is the only value not equal to itself; use Number.isNaN() to test for it.
Answer2^53 - 1
JavaScript numbers are 64-bit floats, which represent every integer exactly only up to 2^53 - 1.