共同点:两者都表示“无”
let b = null
console.log(b) //=> null
function myfuntion(a) {
console.log(a)
}
myfuntion() //=> undefined
let person = {
age: 12,
}
console.log(person.name) //=> undefined
let str
console.log(str) //=> undefined
function myfuntion() {
let a = 12
}
let p = myfuntion()
console.log(p) //=> undefined
void 0 //=> undefined