anguage-plaintext highlighter-rouge">setInterval()</code>
underlying timer. This timer must be started and stopped, and once started, it calls the tick
function at the given interval until the timer is stopped. The tick function also terminates the
timer after its been called a few times.</li>
  <li>The lifecycles of the state and timer objects are separate, one doesn‚Äôt know about the other. For
this reason, some glue has to be added in order to tie the lifecycle of the <code class="language-plaintext