I having trouble getting my head around this bit of code, I feel like something is missed out of the instructions?


#1

so I'm on rock paper scissor 1.5 i feel like i have followed the instructions but it says my compare function does not return? I've struggled with JS from the start TBH.
any help would be appreciated.

Thank you

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


#2

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

don't write {} after var declaring


#3

its fine i missed the ! "code blind"