JavaScript Program to Check Whether Number is Positive, Negative or Zero Number

Write a JavaScript program to check whether a given number is positive, negative or zero number.

Source Code
    <title>Check Positive, Negative or Zero Number</title>
    var no = prompt("Enter the number", "");
    no = parseInt(no);

    if(no < 0)
        document.write("You entered Negative Number.");
    else if(no > 0)
        document.write("You entered Positive Number.");
        document.write("You entered Zero.");

"Coding Hub - Learn to code" app now available on Google Play Store