title: Variable will not Math.floor();
body: <p>I want a variable to update every second to the value of <code>Math.floor(jeans + jps)</code> with <code>jeans</code> being the number of jeans and <code>jps</code> being the number of jeans produced per second.</p>
  
  <p>Here is a code snippet from my script:</p>
  
  <pre><code>setInterval(function() { 
      var prefloor = (jeans + jps);
      jeans = Math.floor(prefloor);
  }, 1000);
  </code></pre>
  
  <p>However, this does not change the value of <code>jeans</code>. The following does change it, though:</p>
  
  <pre><code>setInterval(function() { 
      var prefloor = (jeans + jps);
      jeans = prefloor;
  }, 1000);
  </code></pre>
  
  <p>What am I doing wrong?</p>