typeof
对象类型
var a ="5435"
typeof a // string
instance of
var a ="4324"
a instanceof String // false
a instanceof Object // false
a.constructor.name // "String"
var b=new String("45435")
b instanceof String //true
b instanceof Object // true
b.constructor.name // "String"
object instanceof constructor
对象是否是构造函数的实例
constructor
var a ="fsdf"
a.contructor.name // "String"
#