I don't understand why this javascript isn't working....
var value = prompt("Hi! How are you?", "Answer good, bad or ok.");
var answer = (value);
var greeting = function(answer) {
if (answer === good)
{
console.log("That's great! Have a nice day!");
}
else if (answer === bad)
{
console.log("Aw =/ I hope things get better for you soon!");
}
else if (answer === ok)
{
console.log("That's good! Have a nice day!");
}
else
{
console.log("Sorry, I don't understand.");
}
};
greeting();