title: Easy- Function arguments
body: <p>I'm currently struggling with getting the below calcRatio function calculate properly. This is probably basic maths!
  The below function works as expected:</p>
  
  <pre><code>function calcRatio(){
      var r = frontRing.value/backCog.value;
      return r;
  }
  </code></pre>
  
  <p>e.g. frontRing = 52, backCog = 11 r=4.7272....</p>
  
  <p>The below gives me the wrong result:</p>
  
  <pre><code>function calcRatio(){
      var r = frontRing.value/(backCog.value + 5);
      return r;
  }
  </code></pre>
  
  <p>e.g. frontRing = 52, backCog = 11 r=0.4521.</p>
  
  <p>I ultimately want the 5 to be swapped with an argument.</p>
  
  <p>I am also unable to set the frontRing and backCog variable as .value's without doing it within the function. Could this be causing the issue?</p>
  
  <p><a href="https://codepen.io/Whittaker555/pen/eRbwyR" rel="nofollow noreferrer">Codepen link</a></p>