This tutorial explains the difference between strict mode and sloppy mode in your scripts.
With the command "use strict" at the top of your file you can protect yourself from common typos and errors.
Starter Code GIST: https://gist.github.com/prof3ssorSt3v...