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.