Section Two


It says syntax error. Why?

Replace this line with your code. 
var age = prompt("What's your age");
if(age is less than 13) 
    console.log("Play on, but I take no responsibility");
    console.log "Play on!";


First, instead of typing:

if(age is less than 13)

you can type:

if(myAge = 13)

More easy and convenient
Second, you have one console.log with brackets and the other has no brackets.
Fix it.


Thank you so much! You really helped me!:blush:


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