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 thecount
by1
, thenrender()
-
prev()
: decrement thecount
by1
, thenrender()
-
reset()
: reset thecount
to0
, thenrender()
-
skipForward()
: increment thecount
by10
, thenrender()
-
skipBackward()
: increment thecount
by10
, thenrender()
-
startTimer()
: start a timer which increments and callsrender()
once every second -
stopTimer()
: cancel the timer