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

Do while loop

lesson 4 level 5
let i = 1;
let num=5;


do{
console.log(num i);
i++;
}while(num
i<=50);
what is wrong
by

1 Answer

sam5epi0l
Here is a possible solution for level 4 lesson 5 (js-course):


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");
}

Login / Signup to Answer the Question.