What I learned on this mini-project.
The canvas has properties that can be modified to alter the line style.
https://gist.github.com/3894ae52094324c5fd72e113befa6c4f
ES6 allows you to easily name multiple variables, demonstrated by the the following code