Many languages have the concept of logging levels. Like log, warn, error, etc. In development you can configure that to show you all levels of errors, but then crank it down in production, for example, to only see errors but nothing lower than that.

JavaScript has console.log, console.warn, console.error, etc, but they all display messaging in production. There is no browser api for turning off lower level logs. Meaning we can't leave logging in our scripts, we have to strip it out.

Packages for doing this...