PatrickFrankAIU / ITWEB220-2404A

Learning resources for students in ITWEB 220, term 2404A.
0 stars 0 forks source link

Exercise: Positive and Negative Numbers #6

Open PatrickFrankAIU opened 3 months ago

PatrickFrankAIU commented 3 months ago

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!

bufnjon commented 3 months ago

completed this issue main7.js