title: how to make a javascript input number positive and negative number
body: <p>Hi, I am wondering how I would be able to do this code. I have an idea on how to make the javascript code, but I'm not sure if my code is correct. The question I have been given is:</p>
  
  <blockquote>
    <p>Design and develop a javascript program that will determine if input
    number is positive and negative.Consider zero(0) as
    positive(considering that it contains no negative sign).</p>
  </blockquote>
  
  <p>here is my javascript code, I'm not sure if this is correct based on the question above.</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;activity 1&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;script type="text/javascript"&gt;
      var stringNumber = prompt("Enter Number: ", "");
      stringNumber = parseInt(stringNumber);
      if(stringNumber &gt;=80){
        document.write("Positive");
      }else{
        document.write("Negative");
      }
    &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>any answers are greatly appreciated.</p>