简述instanceof和type的区别?
简述[ ]instanceof Object的值和原因?
typeof {a: 1} === 'object'
typeof [1, 2, 4] === 'object'
typeof new Date() === 'object'
typeof /regex/ === 'object'
typeof function() {} === 'function'
typeof class C {} === 'function'
typeof Math.sin === 'function'
typeof undefined === 'undefined'
typeof undeclaredVariable === 'undefined'
typeof declaredButUndefinedVariable === 'undefined'
typeof Symbol() === 'symbol'
typeof true === 'boolean'
typeof '' === 'string'
typeof 'bla' === 'string'
typeof 42n === 'bigint'
typeof NaN === 'number'
typeof Infinity === 'number'
typeof(42) === 'number'