4 ms·
We already have a strict subset of JavaScript, “strict mode” – see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions_and_function_scop
by roryokane 13y ago
We already have a strict subset of JavaScript, “strict mode” – see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions_and_function_scope/Strict_mode https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe.... You activate it by putting the code `"use strict";` at the top of a script or a function.