Simple JavaScript Timer: Part III

The remaining requirements from the last session are: Refactoring the two buttons to just one for starting/stopping the timer Being able to capture snapshots of the timer countdown on a button press. Clearing the snapshots and resetting the timer on another button press. Refactoring the two buttons to a single one which would handle the […]

JavaScript callback functions

Another primer, this time on callback functions.  Call back functions are basically a function that is passed as an argument, or included wholly as in the case of anonymous functions, in another function’s call. It hails from, wait for it… functional programming. One way of understanding how callbacks function *pardon the pun*, is based on […]