πŸ“Š 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) var strict = (function { return this; });
  • (B) mode strict = (function() { return !this; }());
  • (C) var strict = (function() { return !this; }());
  • (D) mode strict = (function { });
πŸ’¬ Discuss
βœ… Correct Answer: (C) var strict = (function() { return !this; }());

Explanation: The above code defines and invokes a function to determine if we’re in strict mode.

Explanation by: Mr. Dubey
The above code defines and invokes a function to determine if we’re in strict mode.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
171
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
90%
Success Rate