Question 18/20
beginner
Select one answer

What is the purpose of "use strict" in JavaScript?

To make JavaScript run faster
To enable strict mode which catches common coding errors and unsafe actions
To restrict the use of certain HTML elements
To enforce TypeScript-like type checking

Premium Question

Upgrade to unlock this question and 300+ more interview prep MCQs.