like below code:
function test() {
console.log( typeof this )
}
test.call(3)
the code output 'object' in console. but if I remove typeof
it output [Number: 3]
so why typeof this
not output number???
like below code:
function test() {
console.log( typeof this )
}
test.call(3)
the code output 'object' in console. but if I remove typeof
it output [Number: 3]
so why typeof this
not output number???