"use strict"; // add to top to make doc stict mode
Throws more errors by making silent errors into real errors. Helps write cleaner and more secure code. Can also use TypeScript, made to help write JavaScript.
console.log(statement);
Outputs a message to the console. Good for locating silent bugs.