JavaScript practice

from a JS course by Kalob Taulien on Arbington

I added few little things.