Javascript logical “!==” operator?

前端 未结 6 1936
无人共我
无人共我 2021-02-01 12:37

I am getting back into web development, and have been trying to go over the nuances of jscript recently. I was pouring through the source of the THREEx extension library built o

6条回答
  •  既然无缘
    2021-02-01 13:11

    The !== opererator tests whether values are not equal or not the same type. i.e.

    var x = 5;
    var y = '5';
    var 1 = y !== x; // true
    var 2 = y != x; // false
    

提交回复
热议问题