2a. Write a JavaScript program that asks the user to enter a number & check whether the number is a positive number, a negative number or a positive number using if else if statement.
Answers
Answered by
1
Answer:
function isPositive(num)
{
if(num < 0)
return false;
else
return true;
}
Similar questions