Which of the following statements will result in true when using the strict equality operator (===)?
a)
5 === "5"b)
null === undefinedc)
true === 1d)
5 === 5Answer:
d)
5 === 5Explanation:
The strict equality operator (===) compares both the value and type of two variables. The statement 5 === 5 returns true because both the value and type (number) are the same.
Other comparisons, like 5 === "5", return false because the types differ.