title: How to call a function containing If/Else using User Input in JavaScript
body: <p>How do I go about nesting an If/Else statement into a function and then calling that function using a user input in the body in order to make the function calculate the correct alert with JavaScript? I'm missing the knowledge of how to call the statement in the body it seems. Any help would be appreciated! :)</p>
  <pre><code>&lt;!doctype html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;title&gt; JavaScript Playground &lt;/title&gt;
      &lt;script type=&quot;text/javascript&quot;&gt;
          function grade(Grade){
              if (Grade &lt;= 90 &amp;&amp; Grade &gt;= 100) {
                  return alert(&quot;You made an A!&quot;);
              } else {
                  return alert(&quot;I don't know what you made!&quot;);
              }
          }
      &lt;/script&gt;   
  &lt;/head&gt;
      &lt;body&gt;
          &lt;script&gt;
          var Grade = parseFloat(prompt(&quot;Please enter a number: &quot;));&lt;/script&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>