try {
  Block of code to try
    throw Error(“”)
}
catch(err) {
  Block of code to handle errors 
  console.log(err)
}
finally {
  Block of code to be executed regardless of the try / catch result 
}

To handle errors and allow our program to continue running.

"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.