This is highly desirable. I know that sounds counterintuitive. Why would you want more errors in your code?
Here’s the thing: there were already errors in your code. The browser just wasn’t telling you about them, so they might crop up in unexpected ways that are harder to find.
Turning on strict mode helps you find errors sooner, before they become bigger problems. And it forces you to write better code.
Always use strict mode on your scripts.
How do you activate strict mode? #
Simple, just add this to your scripts: