Javascript
100 Front End Interview Questions Challenge

Strict Mode

Mute
Current Time 0:00
/
Duration Time 0:00
Loaded: 0%
Progress: 0%
Stream TypeLIVE
Remaining Time -0:00
 
PRO

Place 'use strict' at the top of a JS file to strict mode. Strict mode enforces best practices and stops you from using deprecated or discouraged features from older version of JS, like deleting object properties or repeating prrameter names.

Many modern linters have replaced the need for strict mode, but it is still useful. Strict mode will throw an error when it encounters a problem.

 

I finished! On to the next chapter