Create an if statement that will evaluate if the weather is rainy and you’re feeling happy. If so, in the code block of the if statement, print the string “I am singing in the rain, just singing in the rain!”.
var weather = ‘rainy’;
var isHappy = true;
if (weather !== isHappy) {console.log(‘I am singing in the rain, just singing in the rain!’);}
console.log();
outcome:
Code is incorrect
You should check weather and isHappy in your condition
The variable weather contains a string and the variable isHappy contains a boolean so you don’t want to compare them directly. You want to check if the weather is rainy AND you’re feeling happy. Hopefully that is a big enough of a clue to steer you in the right direction.
You do have the if condition working correctly now but you’ve added something that you definitely do not need after the parens. I don’t think your if statement needs to be winking at you
If you format your code differently then you might be able to see the issue after the if statement a little better.
const weather = "rainy";
const isHappy = true;
if (weather === "rainy" && isHappy);{
console.log("I am singing in the rain, just singing in the rain!");
}