'else' is a syntax error?


#1

Whenever 'else' comes up in an assignment, the terminal tells me that 'else' is an unexpected token. This is my code:
if (10 >= 10) {
console.log("You got a true!")
};
else
{
console.log("You got a false!")
};


#2

Hi ,shouldn't use semi-colon in if-else condition.


#3

Oh. Thanks! Haha.
That helped.


#4

else {
console.log("Error Error Error!")
}
dont' see where the error is here.