Build a Logic Checker App - Step 12

Tell us what’s happening:

let timmyAge=18;
if (timmyAge >= 16) {
console.log(“Timmy is old enough to drive.”)}else{
console.log(“Timmy is not old enough to drive.”);
}

  1. Your third if statement should have an else clause.
  2. You should log “Timmy is not old enough to drive.” to the console within the body of your else clause.
    Hallo zusammen ich bekomme immer diese Fehler Meldung kann mir vielleicht jemand helfen?
  3. danke im Voraus

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

// User Editable Region

let timmyAge = 18;
if (timmyAge >= 16) {
  console.log("Timmy is old enough to drive.");
} 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) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36

Challenge Information:

Build a Logic Checker App - Step 12

you changed this line, it used const, now the tests don’t recognise the code anymore

1 Like