js typeof

var message = "some thing";

alert(typeof message); // string

alert(typeof 95); // number

alert(message == undefined) // false

alert(null==undefined) // true

typeof (message) 规范写法

原文地址:https://www.cnblogs.com/AlvinCrash/p/5647365.html