title: Javascript Save Max Value of Loop Variable
body: <p>I have a variable that is updated every 2 seconds with a new value ( speed ) , I want to keep saved the highest value .
  How can I do?
  snipper</p>
  
  <pre><code>var velocità = spazio / t1;    // km/h
           console.log('Stai andando a: ' + velocità);
           document.getElementById("velocità").innerHTML = velocità;
  </code></pre>