title: Converting Score to Grade simpler. Is there a simpler way to write the following code?
body: <p>It is somewhat tedious writing all the else if statements. Is there a simpler way to write the following code?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function convertScoreToGradeWithPlusAndMinus(score) {
    // your code here
    if(score &lt;= 100 &amp;&amp; score &gt;= 98) return "A+";
    else if(score &lt;= 97 &amp;&amp; score &gt;= 93) return "A";
    else if(score &lt;= 92 &amp;&amp; score &gt;= 90) return "A-";
    else if(score &lt;= 89 &amp;&amp; score &gt;= 88) return "B+";
    else if(score &lt;= 87 &amp;&amp; score &gt;= 83) return "B";
    else if(score &lt;= 82 &amp;&amp; score &gt;= 80) return "B-";
    else if(score &lt;= 79 &amp;&amp; score &gt;= 78) return "C+";
    else if(score &lt;= 77 &amp;&amp; score &gt;= 73) return "C";
    else if(score &lt;= 72 &amp;&amp; score &gt;= 70) return "C-";
    else if(score &lt;= 69 &amp;&amp; score &gt;= 68) return "D+";
    else if(score &lt;= 67 &amp;&amp; score &gt;= 63) return "D";
    else if(score &lt;= 62 &amp;&amp; score &gt;= 60) return "D-";
    else if(score &lt;= 59 &amp;&amp; score &gt;= 0) return "F";
    else return "INVALID SCORE";
  }
  
  var output = convertScoreToGradeWithPlusAndMinus(91);
  console.log(output); // --&gt; 'A-'</code></pre>
  </div>
  </div>
  </p>