how to find the number is positive, negative and zero with if else statment

 var numb = -1;

if (numb ===0){

  console.log("zero")

}


else if(numb > 0){

  console.log("positive")


}



else{

  console.log("negative")

}

Comments

Popular posts from this blog

practice test of Arithmetic Operations: