Closed HmHmmHm closed 7 years ago
/ ERROR CASE 1 / let a = null console.log(a === null) //Cannot read property 'Symbol(===)' of null
/ ERROR CASE 2 / let b = undefined console.log(b === undefined) //Cannot read property 'Symbol(===)' of undefined
Simply way out this problem, I can using the typeof function. but It seems necessary to improve.
/ ERROR CASE 1 / let a = null console.log(a === null) //Cannot read property 'Symbol(===)' of null
/ ERROR CASE 2 / let b = undefined console.log(b === undefined) //Cannot read property 'Symbol(===)' of undefined
Simply way out this problem, I can using the typeof function. but It seems necessary to improve.