Computer Science, asked by ayazturi96, 2 months ago

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 arorasaruchi
1

Answer:

function isPositive(num)

{

if(num < 0)

return false;

else

return true;

}

Similar questions