Build a Logic Checker App - Step 12

Tell us what’s happening:

I don’t know what’s wrong with the code. The task is to put a else clause in the third if but nothing is working

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

const 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 (Windows NT 10.0; Win64; x64; rv:148.0) Gecko/20100101 Firefox/148.0

Challenge Information:

Build a Logic Checker App - Step 12

Welcome to the forum @edgshift

Try adding a single space between else and the curly brace.

Happy coding

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.