Your .js file adds lots of global variables (lines 1 -7). Maybe you could move everything to be inside the stopwatch object you make on line 7, or use a module pattern?
Good point for big chunks of code and future instances. Refactoring our code to follow your suggestion would take us rather long now without affecting our functionality. But very good point :smile:
Your .js file adds lots of global variables (lines 1 -7). Maybe you could move everything to be inside the
stopwatch
object you make on line 7, or use a module pattern?