Tell us what’s happening:
I am working on Step 11 of the Build a Logic Checker App workshop and need help with the conditional statement. I am trying to write an if statement that checks if the birthday variables are equal using strict equality and logs “Happy Birthday!” to the console, but the tests are failing. Here is my code so far:
let birthday1 = …;
let birthday2 = …;
if (birthday1 === birthday2) {
console.log(“Happy Birthday!”);
}
Your code so far
// User Editable Region
let hasDeveloperJob = true;
if (hasDeveloperJob) {
console.log("Timmy is employed as a developer.");
}
let isTimmyAGamer = false;
if (isTimmyAGamer) {
console.log("Timmy loves to play World of Warcraft.");
}
let timmyAge = 18;
if (timmyAge >= 16) {
console.log("Timmy is old enough to drive.");
}
if (birthday1 === birthday2) {
console.log("Happy Birthday!");
}
// User Editable Region
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/152.0.0.0 Safari/537.36
Challenge Information:
Build a Logic Checker App - Step 11
