This forum is now read-only. Please use our new forums! Go to forums

0 points
Submitted by Kenan Esho
over 8 years

syntax error 2/7. I need your help.

1 confirm(“Are you ready?”) 2 var age = prompt(what is your age?) 3 if (age < 13) {console.log(“you are allowed to play but KENAN takes no responsibility”)} 4 else{“play on. Enjoy!”}

Answer 56020fa351b8873161000654

0 votes

Permalink

You are missing quotes from the prompt string. Your last string is missing the console.log

points
over 8 years

Answer 5602d9a251b8878a5f0002a0

0 votes

Permalink

thank you. i figured it out eventually.

points
Submitted by Kenan Esho
over 8 years

2 comments

What was your issue?

Kenan Esho over 8 years

The missing quotes like you pointed out.