title: Run multiple else if statements
body: <p>When I run this code, only the INVALID (over 100) and High Distinction works. Any number below 80 also shows High Distinction. What have I done wrong?</p>
  
  <pre><code>function calculateGrade() {
      var fvalue = Number(prompt('Please enter final score for unit. Enter a whole    number only'));
  
      document.write('The final score entered is ' + fvalue + '&lt;br /&gt;');
  
      if (fvalue &gt; 100) {
          document.write('INVALID');
      } else if (80 &lt;= fvalue &lt;= 100) {
          document.write('High Distinction');
      } else if (70 &lt;= fvalue &lt;= 79) {
          document.write('Distinction');
      } else if (60 &lt;= fvalue &lt;= 69) {
          document.write('Credit');
      } else if (50 &lt;= fvalue &lt;= 59) {
          document.write('Pass');
      } else if (0 &lt;= fvalue &lt;= 49) {
          document.write('Fail');
      } else if (fvalue &lt; 0) {
          document.write('INVALID');
      }
  
  }
  
  calculateGrade()
  </code></pre>