Code Your Own Adventure! 1 task


#1

I don't understand where I am wrong
Please look at my code show me my mistake

var dream='parachute';
var study='parad';
if (dream.substring(0,4)!==study.substring(0,4);
{ confirm('I am ready to play!');}
else
{ prompt('Do you need to revise');}// Check if the user is ready to play!


#2

if (dream.substring(0,4)!==study.substring(0,4);

Remove the semicolon and add at the end of this line a )


#3

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