Generation

generate functionSun, 25 Aug 2024

Write a program to find the number is negative or positive or neither positive nor negative

ript function isNegative(x) { if (x < 0) { return true; } else { return false; } } function isPositive(x) { if (x > 0) { return true; } else { return false; } } function isZero(x) { if (x === 0) { return true;

Javascript
Generate More

Want to kickstart your project?Use the new AI Studio to create your code