If I am creating a function:
function one() {
console.log(this)
}
, I understand this
is the window object.
If I make this function and run one
, why is this
still the window object?
function one() {
function two() {
console.log(this)
}
return two()
}
wouldn't this
now be relative to inside of one()
?