Java script


#1


// Check if the user is ready to play!

confirm("Ready player one?");
var age = prompt("What's your age?");
if(age < 13)
{
    console.log = ("You may play, however we assume no responsibilty for the content of our game.")
}
else
{
    console.log = ("Play on peasant!");
}
console.log = ("You are at a Justin Bieber concert, and you hear this lyric 'Lace my shoes off, start racing.'");

what wrong with my code

question 3


#2

delete the equal signs here:

because you make a console.log statement like this:

console.log("Text")

#3

it's twritting me " console.log is not a function"


#4

that is because you make a function like this:

var functionName = function() {

}

and you are doing almost the same thing here


#5

what am i supposed to do???


#6

take away the equal(=) sign where I said


#7

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