6. Asking for feedback


#1

TypeError: prompt is not a function

I keep getting the above error when I type in
"
var feedback = prompt("Message");
"

The guide to the left says this:

Hint
Get live, fast support from Codecademy Advisors when you get stuck.
Learn more.
Remember, your prompt should look something like this:

var feedback = prompt("Message");

Is there an error in the programming?

Here is the code I added for this segment:

var feedback = prompt("Message");
if (feedback > 8)
{
console.log("Thank you! We should race at the next concert!")
}
otherwise
{
console.log("I'll keep practicing coding and racing.")
}


#2

here

var feedback = prompt("Message");
if (feedback > 8){
console.log("Thank you! We should race at the next concert!");
}

//change the otherwise to else. otherwise is not defined

else{
console.log("I'll keep practicing coding and racing.");
}