6. Asking for feedback


#1



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


Oops, try again. There was a problem with your syntax.


confirm("I`am ready to play!");
var age = prompt("What`s your age?");
if (age<13)
{
    console.log("You play on your own responibility");
}
else
{
    console.log("Let`s play, and have fun!");
}

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 (userAnswer==="no")
{
    console.log("Oh no! Bieber shakes his head and sings 'I set a pace, so I can race without pacing.'");
}

var feedback = prompt("Feedback 1-10, where 10 is the highest");
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

if (feedback ===>8) //remove >


#3

but its supose to be 8 and higher? now you have to say 8 to get the "posetive" message?


#4

i just told you the syntax error in the code !!!!
now see the instruction-
If feedback is greater than 8
so simply do

if (feeback>8){
//some code
}
else{
//some code
}