Signup/Sign In
user profile picture

Diego Jonguitud Galindo

Diegoye4no

Joined 3 years ago

Answers

All questions must be answered. Here are the Answers given by this user in the Forum.

Check out this way, some how worked with single quotes...

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