Thoughts & Musings

Creating a Promise
Promises are used for asynchronous code. It is a temporary holder for a value that gets returned by an asynchronous call. For example, a call

Developer Defined Errors
We can also throw our own errors. This is done with the “throw” keyword using the “new” keyword and the Error method. Here is the

Try and Catch
The try/catch keywords allow us to handle errors more gracefully. Here is an example… What we are doing here is telling JavaScript to “try” running

Modifying DOM Elements
Once we can grab DOM elements, we can modify them. There are several methods to change DOM elements. If we would like to set the