My code won’t run, I get the message “SyntaxError: Unexpected token else”
Kindly assist
var moonPhase = “full”;
if (moonPhase === “full”);
{
console.log(“Howwwwlll!!”);
}
else
{
console.log(“I swear I am not a werewolf…”);
}
My code won’t run, I get the message “SyntaxError: Unexpected token else”
Kindly assist
var moonPhase = “full”;
if (moonPhase === “full”);
{
console.log(“Howwwwlll!!”);
}
else
{
console.log(“I swear I am not a werewolf…”);
}
if (moonPhase === "full");
{
Get rid of that semicolon