169 B
169 B
importance: 5
Calling in an array context
What is the result? Why?
let arr = ["a", "b"];
arr.push(function() {
alert( this );
})
arr[2](); // ?
importance: 5
What is the result? Why?
let arr = ["a", "b"];
arr.push(function() {
alert( this );
})
arr[2](); // ?