console.log('%c Line:5 window.undefined', 'color:#ffdd4d', window.undefined)
window.undefined = 1
console.log('%c Line:10 window.undefined', 'color:#6ec1c2', window.undefined)
delete window.undefined
console.log('%c Line:15 window.undefined', 'color:#ffdd4d', window.undefined)
for (var k in window) {
if (k === undefined) {
console.log('%c Line:18 k', 'color:#2eafb0', k)
}
}
var a
console.log('%c Line:35 a', 'color:#2eafb0', a)
console.log('%c Line:36 typeof a', 'color:#42b983', typeof a)
function test(a) {
console.log(typeof a)
return a
}
console.log('%c Line:44 test()', 'color:#33a5ff', test())
function test() {
console.log(123)
}
console.log('%c Line:52 test()', 'color:#33a5ff', test())
var undefined = 1
console.log('%c Line:54 window.undefined', 'color:#f5ce50', window.undefined)
function test() {
var undefined = 1
console.log('%c Line:60 undefined', 'color:#f5ce50', undefined)
}
test()
var a = null
if (a === undefined) {
console.log(true)
} else {
console.log(false)
}
var a
console.log('%c Line:76 typeof a', 'color:#3f7cff', typeof a)
if (typeof a === 'undefined') {
console.log(true)
} else {
console.log(false)
}
console.log(typeof b)
var a
if ('a' in window) {
console.log(true)
} else {
console.log(false)
}
var a, b, c
a = void ((b = 1), (c = 2))
console.log('%c Line:98 a, b, c', 'color:#e41a6a', a, b, c)
console.log(
'%c Line:100 void(0) === window.undefined',
'color:#ea7e5c',
void 0 === window.undefined
)
function test() {
var undefined = 1
console.log(undefined)
console.log(window.undefined === void 100)
console.log(undefined === void 0)
}
test()