Code ur own adventure


pls help each time its different errors now it shows syntxerror 

here is my code 

// conform ("are you ready?"); 
  var age = prompt ("whats ur age");  if (age === 13) confirm ("time to get started") }   else  {  console.log ("sorry u cant play") }


you missed opening bracket
if (age === 13) // here need a { bracket

and change from=== to ==

from glossary-javascript(codecademy)


Check my comments and @rcodeman's advice


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