Uncaught SyntaxError: Unexpected token else?????????????????

function ifThing(word) {
var word = 'foo';
if(word === 'foo'); {
console.log("It's foo!");
} else {
console.log("No.");
}
}

ifThing(foo);
3 answers 3