📜  严格相等运算符 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:06.442000             🧑  作者: Mango

代码示例1
/**
* Strict equality operator (===) checks if its two operands are identical.
*
* The 'if' statement below will yield to false. 
* 
* This is because the strict equality operator checks if both the data type AND the value contained are
* the same.
*/
let x = 8
let y = "8"
if (x === y)