3. Adding some story + TypeError: console.log is not a function


#1

I can't find the problem.. My code looks clearly right!


#2


Another way.. didnt works((


#3

If i try to use

console.log("You are at a Justin Bieber concert,and you hear this lyric 'Lace my shoes off, start racing.'");

Red text in console wondow report: "TypeError: console.log is not a function"


#4

HI you should remove the = after console.log then you should refesh the page, if it doesn't work try to post your code


#5

If i try to use

console.log("You are at a Justin Bieber concert,and you hear this lyric 'Lace my shoes off, start racing.'");
Red text in console wondow report: "TypeError: console.log is not a function"

refreshing page or restarting a browser didnt solve the problem (sorry for my english :sweat_smile:)


#6

Don't worry for it... Can you post your code ?


#7

Now it looks like this

var age = prompt("what is your age?");
if(age < 13)
{
console.log = "lol"
}
else
{
console.log = "wow!"
};

console.log("You are at a Justin Bieber concert,and you hear this lyric 'Lace my shoes off, start racing.'");


#8

All your console.log() should be like that

console.log("here goes your message")

without = after console.log
after you change it you should refresh the page


#9

ow! thanks! "TypeError: console.log is not a function" is solved then I made All console.log as function!
And I forgot a spacebar after ",". Here a code which works:

var age = prompt("what is your age?");
if(age < 13)
{
console.log("lol")
}
else
{
console.log("wow!")
};

console.log("You are at a Justin Bieber concert, and you hear this lyric 'Lace my shoes off, start racing.'");