The canvas was just an example. Your game could perfectly run in a window on a canvas btw. but that's for later..
timer units = hertz
so 1 = 1 tick per second, 60 = 60 ticks per second etc.
timer units = hertz
so 1 = 1 tick per second, 60 = 60 ticks per second etc.