Tell us what’s happening:
I have adds the else part in the 3rd if clause and the compiler shows the error like this again and again
Your third if statement should have an else clause.
Your third if statement should have an else clause.
Your code so far
const hasDeveloperJob = true;
if (hasDeveloperJob) {
console.log("Timmy is employed as a developer.");
}
const 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.");
// User Editable Region
}
else{
console.log("Timmy is not old enough to drive.");
}
// User Editable Region
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/147.0.0.0 Safari/537.36
Challenge Information:
Build a Logic Checker App - Step 12