title: prompt function wont print
body: <p>I need help with my code as I need it to prompt the user repeatedly to put points in and read the if else statement.</p>
  <p>''''
  
  var points; Points earned
  points = prompt (&quot;Please enter the number of points earned.&quot;,&quot;&quot;);</p>
  <pre><code>    //Convert the string into a number
        points = parseFloat(points)
  
       while (isNaN(points) ||points&lt;=0)) { 
       points = prompt(&quot;That is not a valid points number. Please enter the number of 
       points earned.&quot;,&quot;&quot;);
       points=parseFloat(points); //move on to if statement
        }
  
       if (&quot;points&lt;1000&quot;){ 
       alert(&quot; +Youngling.&quot;);
       }
       if else ((&quot;points&gt;=1000&quot;)||(&quot;points&lt;=2500&quot;));{ 
       alert( +&quot;Padawan.&quot;);
         }
       if else ((&quot;points&gt;=2500&quot;)||(points&lt;=5000&quot;));{ 
       alert( +&quot;Knight.&quot;);
        }
        if else((&quot;points&gt;=5000&quot;)||(&quot;points&lt;=10000&quot;));{ 
       alert( +&quot;Master.&quot;);}
         }
        else (&quot;points&gt;=10000 or more&quot;);{ 
        alert( +&quot;Grandmaster.&quot;);
         }
         //Display the Ranks assigned
          alert=(&quot;+Ranks&quot;)
          &lt;/script&gt;
  </code></pre>
  <p>'''</p>