Why is the this keyword forbidden in JavaScript?

Why is the this keyword forbidden in JavaScript? Correct Answer Functions should not access the global objects

The this keyword is forbidden or restricted because functions (in non-strict mode) can access the global object through this. Preventing access to the global object is one of the key purposes of any sandboxing system.

Related Questions

Why is this keyword not preferred in JavaScript?
Which is the function in JavaScript that will print the current page in JavaScript?