A

Admin • 833K Points
Coach

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 { });
  • Correct Answer - Option(C)
  • Views: 26
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin

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

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.