5. ¡Ambas elecciones son iguales!


#1

var comparar = function ( eleccion1, eleccion2 ){
if ( eleccion1 === eleccion2 ) {
return "¡Es un empate!";
};

SyntaxError: Unexpected end of input

Que esta mal?


#2

var comparar = function ( eleccion1, eleccion2 ){
   if ( eleccion1 === eleccion2 ) {
      return "¡Es un empate!";
   } // closed if statement
}; // closed function expression

#3

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