Code your own adventure. Part #5


I can't get this to work. im probs dumb and have no idea. but i need help!

confirm("Are you ready to play?");
var age = prompt("What's your age?");
if("age < 13")
console.log("Play on!");
console.log("You may play but take no resposibility");
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?");

if (userAwnser === 'Yes') {

console.log("You and Bieber start racing. It's neck and neck! You win by a shoelace!");

} else

console.log("Oh NO! Bieber shakes his head and sings 'I set a pace, so i can race without pacing.'");



Hi @objectplayer77631

First of all when you put your code here, and if you do formatting properly ,It will help other people to help you better.

So I suggest you to read this. :slight_smile:

Now why your code is not working?

You misspelled here..

if (userAwnser === 'Yes') {

I hope it helps you!


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