JavaScript Program to Check if a number is Positive, Negative, or Zero| JavaScript Tutorial in Hindi

Опубликовано: 06 Май 2026
на канале: DevTechHub
406
4

In this video, you'll learn Convert JavaScript Program to Check if a number is Positive, Negative, or Zero | JavaScript Tutorial in Hindi

Complete JavaScript Program:    • Javascript PROGRAM  


In this video, you'll learn Convert JavaScript Program to Check if a number is Positive, Negative, or Zero | JavaScript Tutorial in Hindi

Source COde
___________________________________________________________________________

// Write a js program to check whether a number is negative, positive or zero.

// var num = +prompt("Enter any number");

// if(num greater than and = 1){
// console.log("Number is Positive :"+num);
// } else if(num less than 0){
// console.log("Number is Negative :"+num);
// }else if(num === 0){
// console.log("Number is Zero :"+num)
// }else{
// console.log("Invalid Key")
// }
___________________________________________________________________________


Please subscribe and press the bell icon to receive daily updates


#JavaScriptTutorials #JavaScriptfunction



Please subscribe and press the bell icon to receive daily updates


#JavaScriptTutorials #JavaScriptfunction