This forum is now read-only. Please use our new forums at discuss.codecademy.com.

101 points
13794b2577a04903b7d77570e67af3d4?s=140&d=retro
Submitted by
Kenan Esho
about 3 years ago

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!"}


0 votes

permalink

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

100 points
A8f715d482d6949dc44abcb224d11297?s=140&d=retro
Submitted by
Smoshy16_552fadf0937676bee600020d_de
about 3 years ago


0 votes

permalink

thank you. i figured it out eventually.

101 points
13794b2577a04903b7d77570e67af3d4?s=140&d=retro
Submitted by
Kenan Esho
about 3 years ago

2 Comments

A8f715d482d6949dc44abcb224d11297?s=140&d=retro Smoshy16_552fadf0937676bee600020d_de about 3 years ago

What was your issue?

13794b2577a04903b7d77570e67af3d4?s=140&d=retro Kenan Esho almost 3 years ago

The missing quotes like you pointed out.