Build a Logic Checker App - Step 12

Tell us what’s happening:

necesito ayuda con mi codigo if (age >= 16) {
console.log(“Timmy is old enough to drive.”);
} else {
console.log(“Timmy is not old enough to drive.”);
} nose porque me da error , esto me piden Step 12 A conditional statement can have an else clause, which runs code when the if condition is falsy. Here’s an example of an if…else statement: Example Code if (condition) { console.log(“condition is truthy”); } else { console.log(“condition is falsy”); }

Your code so far


// User Editable Region

if (age >= 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

Hi there and welcome to the forum!

The code you wrote is correct but you modified the initial code.
Please reset the lesson and try again

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