Exercise 3 · Chapter: ConditionsRequired+50 XP
Fix the Syntax
This program was written by someone who forgot how JavaScript if statements look. Fix the syntax!
Example input: 20
Expected output: Adult
Need a hint?
3 available · costs 5 XP each
javascript
let age = Number(prompt());
if age >= 18
console.log("Adult");
else
console.log("Kid");
Output
Run your code to see the output here.