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
India Languages,
1 month ago
Chemistry,
2 months ago
Math,
2 months ago
History,
8 months ago
Music,
8 months ago