Whats wrong with my code?


I've been working on this, but it keeps saying that there was a problem with the syntax... please help
var compare = function (choice1 === choice2) {
    if(choice1 === choice2){
        return "The result is a tie!";


you can not write boolean operations inside the parameters of a function. Write the definition of the function in a standard way

var compare = function (choice1,choice2) {

and then you can write the boolean operation inside the if as you have already done.