5/9 function & if else statement syntax


#1
var compare = function(choice1,choice2){
if (choice1 === choice2) {
     return "The result is a tie!"; 
};
}

why do we add an extra { at the beginning of the if/else statement? and why don't we end the final } with a ;? I thought we had to add a ; at the end of every statement(so to speak) inside of a function and at the end of a function.


#2

It tried to cover this question here:
https://www.codecademy.com/forum_questions/52373a75548c3515940000dc#answer-529fa36052f863bb58000338
and this is on semicolons:
https://www.codecademy.com/blog/78-your-guide-to-semicolons-in-javascript
but if you have question that go further then this go ahead and ask.