title: Calculator for test scores javascript
body: <p>I'd like to create an average calculator for test scores. Have the user enter numbers. They can enter as many as they want. Once they enter “-1”, end the program. Display the lowest test score, the highest test score, the sum of all test scores, and the average of all test scores.</p>
  <p>The following is my code. I've already figured out how to do the sum of the scores. However, I don't know how I can turn ALL my inputs into a string - possibly output the lowest (<code>Math.min</code>), highest (<code>Math.max</code>) and average of the test score.</p>
  <p>I tried joining strings together but in the end I couldn't figure out how to work!</p>
  <pre><code>while (true) {
      var itemGrade = parseFloat(prompt(&quot;Enter a grade!\n\n(enter -1 to quit)&quot;));
      var item = itemGrade + &quot;, &quot;
      total += itemGrade;
      if (itemGrade == -1) {
          break;
      }
  }
  
  document.write(&quot;Total: &quot; + total)
  </code></pre>