Adding Some Story- Lesson 3


#1

Hi

Having problems with lesson three 'Adding some story'.

My code is as follows-

// Check if the user is ready to play!
confirm("I would like to play");
var age = prompt("What's your age?");
if (age < 13) {
console.log=("You are allow to play but we take no responsibility");
}
else {
console.log=("Play on!");
}
console.log=("You are at a Justin Bieber concert, and you hear this lyric 'Lace my shoes off, start racing.'");

Get Error Message- Oops, try again. Make sure your string is correct and is between quotation marks!

Tried everything but no luck

Help!

Replace this line with your code.


#2

Hi you should remove the = between console.log and () and then refresh the page

console.log("You are allow to play but we take no responsibility");

DO the same for the others


#3

you my friend are a genius. thank you!


#4

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