Problem 2!


#1

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

Where is the wrong?


#2

Write the string exactly like this "The result is a tie!"

There is a blank space after the first quotation mark and its dropped the "!" on the end of string.


#3

thanks a lot!!!!!!!!!!!!!!!!!!!!!!!!


#4

else if(choice1 === "rock") {

 if(choice2 === "scissors") {
     return "rock wins";
 }
 else {
     return "paper wins";
 }

}

syntax error??


#5

At first glance not in this part could you show the rest as well?