1.相同點:兩者都是表示為空值外盯。使用相等運算符時:`null == undefined` 返回的是true,要使用嚴格運算符(===)來區(qū)分
?2.不同點:
?typeof? null 返回為Object?
typeof undefined 返回為 undefined
1.相同點:兩者都是表示為空值外盯。使用相等運算符時:`null == undefined` 返回的是true,要使用嚴格運算符(===)來區(qū)分
?2.不同點:
?typeof? null 返回為Object?
typeof undefined 返回為 undefined