Why is this keyword not preferred in JavaScript?
(a) Highly memory consuming
(b) Functions should access the global objects
(c) Functions should not access the global objects
(d) Very inefficient to use
(a) Highly memory consuming
(b) Functions should access the global objects
(c) Functions should not access the global objects
(d) Very inefficient to use
Correct answer is (c) Functions should not access the global objects
For explanation I would say: 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.