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
πŸ’¬ Discuss
βœ… Correct Answer: (A) Enables strict mode which catches common coding bugs
Explanation: It activates strict mode which enforces stricter parsing and error handling.
Explanation by: Mr. Dubey
It activates strict mode which enforces stricter parsing and error handling.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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