A

Admin • 833K Points
Coach

Q. What is the purpose of the 'use strict' directive?

  • (A) Enables strict mode which catches common coding bugs
  • (B) Enables TypeScript syntax
  • (C) Disables error reporting
  • (D) Forces all variables to be global
  • Correct Answer - Option(A)
  • Views: 24
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin

It activates strict mode which enforces stricter parsing and error handling.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.