Write a JavaScript program that lets a user input a number, then classifies that number as "positive", "negative", or "zero" and prints the classification to the console.
Tip: Use greater-than > and less-than < to compare the input variable with zero. Remember to handle what happens if the number is neither greater than zero nor less than zero!
Write a JavaScript program that lets a user input a number, then classifies that number as "positive", "negative", or "zero" and prints the classification to the console.
Tip: Use greater-than > and less-than < to compare the input variable with zero. Remember to handle what happens if the number is neither greater than zero nor less than zero!