What is wrong with my code here?



It keeps saying that im not getting the correct return from my function.

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


Try adding an exclamation mark after the word tie, and/or try closing the second to last curly brace with a semicolon


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