What does use strict do in javascript?
< 1 min readThe “use strict” directive is a way to opt in to a restricted variant of JavaScript. It enables strict mode, which is a way to write more secure and efficient code by eliminating certain syntax and behaviors that are potentially error-prone or confusing. When strict mode is enabled, JavaScript will throw more exceptions and will…
