Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

Js -course,nested if else

(Weather is not rainy) syntax-if (weather!=rainy ) is this correct or not
by

1 Answer

sam5epi0l
Syntax is correct. It is supposed to be used in else-if condition as shown below:

else if(weather != "rainy")
{
console.log("I go to the office");
}

Login / Signup to Answer the Question.