5/9 function & if else statement syntax

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.


It tried to cover this question here:
and this is on semicolons:
but if you have question that go further then this go ahead and ask.