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

I don't find any error in my code still i am getting a pop of use proper syntax

let myvehicle = "car";
let weather = "rainy";

if (weather == "rainy")
{
if (myvehicle == "car")
{
console.log("I go to the office");
}
else if (myvehicle == "bike")
{
console.log("I Work from home");
}

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

0 Answers

No Answer posted yet.

Login / Signup to Answer the Question.