πŸ“Š JavaScript
Q. Which of the following is the correct code for invoking a function without this keyword at all, and also too determine whether the strict mode is in effect?
  • (A) mode strict = (function { });
  • (B) var strict = (function { return this; });
  • (C) mode strict = (function() { return !this; }());
  • (D) var strict = (function() { return !this; }());
πŸ’¬ Discuss
βœ… Correct Answer: (D) var strict = (function() { return !this; }());

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
207
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Vishal Gupta
Publisher
πŸ“ˆ
87%
Success Rate