The Advanced Counter should have the following:
-
count: a number which represents the currentcount, initial value0 -
render(): when this function runs, the DOM will be updated to display the current state of thecount -
next(): increment thecountby1, thenrender() -
prev(): decrement thecountby1, thenrender() -
reset(): reset thecountto0, thenrender() -
skipForward(): increment thecountby10, thenrender() -
skipBackward(): increment thecountby10, thenrender() -
startTimer(): start a timer which increments and callsrender()once every second -
stopTimer(): cancel the timer