Both choices are the same


#1



https://www.codecademy.com/courses/javascript-beginner-en-Bthev-mskY8/1/1?curriculum_id=506324b3a7dffd00020bf661


I can't find where is the syntax error:

Oops, try again. There was a problem with your syntax


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


#2

Remove the semicolon here
Use the function keyword before the parenthesis


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.