Code Implementation for CW2.
JavaScript
Seeing something unexpected? Take a look at the GitHub profile guide.