Code Your Own Adventure! feedback part lesson 6


#1

https://www.codecademy.com/courses/javascript-beginner-en-x9DnD/0/6?curriculum_id=506324b3a7dffd00020bf661

Always TypeError: console.log is not a function I have tried F5 for a long time but nothing new


// Check if the user is ready to play!
confirm("I am ready to play!")
var age = prompt("What's your age");
if (age<13)
{
   console.log("Your are allowed to play but i take no responsibility");   
}
else 
{
    console.log("Go on");    
}
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 (userAnswer=("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.'");    
}
var feedback = prompt("Please rate our game with a number between 1 and 10!");
if (feedback > 8){
console.log("Thank you! We should race at the next concert!");
}
else
{
console.log("I'll keep practicing coding and racing.");
}


#2

Check my comments above, make the corrections and resubmit your code :slight_smile:


#3

Finally passed this lesson.. Thank you bro I appreciate your help :slight_smile:


#4

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