title: How to trigger JavaScript when a counter reaches a specific number?
body: <p>I want to trigger a JavaScript when a counter  reaches a specific number, such as 10.
  How do I do this?</p>
  
  <pre><code>&lt;button onclick="stepupfunction()"&gt; PRESS ME &lt;/button&gt;
  &lt;script&gt;
       document.addListener('onLoad', function documentLoaded(e) {
          document.getElementById("score").value = store.get('putAKeyHere') || 0;
      })
      function stepupfunction() {
          document.getElementById("score").stepUp(1);
          store.set('putAKeyHere',document.getElementById("score").value)
      }
  &lt;/script&gt;
  </code></pre>