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.”);
}
- Your third if statement should have an else clause.
- 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? - 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