ECMAScript中的五种原始类型:Number、String、Null、Undefined、Boolean
1.比较运算,数组、对象不是原始类型。
//true null === null ‘abc‘ == ‘abc‘ 1 == 1 //false [1,2,3] == [1,2,3] {} == {}
时间: 2024-12-12 13:46:46
ECMAScript中的五种原始类型:Number、String、Null、Undefined、Boolean
1.比较运算,数组、对象不是原始类型。
//true null === null ‘abc‘ == ‘abc‘ 1 == 1 //false [1,2,3] == [1,2,3] {} == {}