Why is the this keyword forbidden 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
Answers
Answered by
1
Hi there,
Option c is correct.
Explanation: 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.
Option c is correct.
Explanation: 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.
Answered by
0
______✨ HEY MATE ✨_____
➡️ Option (C) Functions should not access the global objects is the right answer ✔️
➡️ Option (C) Functions should not access the global objects is the right answer ✔️
Similar questions
English,
6 months ago
English,
6 months ago
Computer Science,
1 year ago
Computer Science,
1 year ago
Math,
1 year ago
Physics,
1 year ago