4. First Move! won't let me move on no matter what I do


#1

This won't allow me to go to the next step even though I know that it is right:
console.log("Suddenly, Bieber stops and says, 'Who wants to race me?'"); ?
The pop-up dialog box pops up but when it gets to the question about 'Who wants to race Bieber on stage?' the wholke thing messes up and gives me the error I described above.


#2

console.log("Suddenly, Bieber stops and says, 'Who wants to race me?'");

This is correct. I will need to see the rest of your code to help you.


#3

confirm("I understand confirm!");
var age = prompt("What's your age");
if(age < 13)
{
console.log("Allowed to play but they take no responsibility!");
}
else
{
console.log("Lets get started! You're older than 12!");
}
console.log("You are at a Justin Bieber concert, and you hear this lyric 'Lace my shoes off, start racing.'")
console.log("Suddenly, Bieber stops and says, 'who wants to race me?'");
var userAnswer;
var userAnswer = prompt ("Do you want to race Bieber on stage?");


#4

You're missing a semicolon at the end here.


#5

thanks, I hadn't noticed that but the issue that I was talking about still happens even now I have corrected that missing semicolon.


#6

What's the error message?


#7

Here is a screenshot as I cannot explain


#8

It looks like it's just a bug, as far as I can see, you're code is fine.

Next time please try and post your code instead of posting an image.


#9

if my code is fine then why won't code academy allow me to pass this level? how can i escape this bug?


#10

It wont allow it because it's a bug.

You can try and get by it by refreshing your page or using another browser.


#12

Hello everyone,

Anyone able to move past this part yet? I believe I'm experiencing the same bug.

//Check if the user is ready to play!
confirm("Are you ready to play?!");
var age = prompt("How old are you?");
if (age < 13)
{ console.log("You're allowed to play, but we take no responsibility");
// do this code
}
else // "otherwise"
{ console.log("Enjoy the game we've designed for your pleasure!");
// do this code :smile:
}
console.log("You are at a Justin Bieber concert, and you hear this lyric 'Lace my shoes off, start racing.'");
console.log("Suddenly, Beiber stops and says, 'Who wants to race me?'");
var userAnswer = prompt("Do you want to race Beiber on stage?");


#13

Try copying and pasting the String quotes and all from the side bar on the left. That's what I did and it went right through.


#14

Thank you for the help.

I copied .... console.log("Suddenly, Bieber stops and says, 'Who wants to race me?'"); ...

That jibblyj posted and pasted it in the code I have been writing and it worked perfect. Not sure what the difference is, but I'm just glad to be able to continue.


#15

I think the issue was it has to be identical to what they're asking. With the OP, he had "who wants to race me?" but it was asking to put in "Who wants to race me?" with a capital W. I believe you misspelled Bieber in yours. You put Beiber instead of Bieber. I ran into a similar problem on the one before it due to the fact that I misspelled a word.


#16

// Check if the user is ready to play!
confirm("Are you ready to play?");
var age = prompt("What's your age");
if ("age"<13){
console.log("You are not redy come back when you are redy to fight/age!")
}
else {
console.log("I hope you are ready to play the deamon gods are waiting!")
}
console.log("You are at a Justin Bieber concert, and you hear this lyric 'Lace my shoes off, start racing.'")
console.log("Suddenly, Bieber stops and says, 'Who wants to race me?'")
var userAnswer = prompt("Do you want to race Bieber on stage?")


#17

This worked for me. Thank you!


#18

I had the same problem. The fix? Copy and paste "Suddenly, Bieber stops and says, 'Who wants to race me?'"


#19

2 posts were split to a new topic: 4. First move


#21