Solution is given in the sandbox below.
once you go through it -
- can you stop the clock afer 5seconds?
- why it is not stopping with current implementation?
- try printing this in the stop function ?
- why it is undefined ?
- think of ways to make it access the correct timerId
- try arrow function
- learn the difference between these two ways