I need help with rock paper scissors


#1

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

I need help with my code please

<Below this line, add a link to the EXACT exercise that you are stuck at.>

<In what way does your code behave incorrectly? Include ALL error messages.>
Uy! Probá otra vez. La función comparar no da como resultado la cadena correcta cuando se comparan papel y piedra

```

var usuarioElige = prompt(“piedra, papel o tijera?”);
var computadoraElige = Math.random();
if (computadoraElige <0.34){
computadoraElige = “piedra”;
}else if(computadoraElige <=0.67){
computadoraElige = “papel”;
}else{
computadoraElige = “tijera”;
}
console.log(“La computadora elige:” + " " + computadoraElige);
var comparar = function(eleccion1,eleccion2) {
if (eleccion1 === eleccion2){
return “¡Es un empate!”;
}
else if (eleccion1 = “piedra”){
if(eleccion2 = “tijera”){
return “piedra gana”;
}
else{
return “papel gana”;
}
}
else if (eleccion1 === “papel”){
if(eleccion2 === “piedra”){
return “gana papel”;
}
else{
return “tijera gana”;
}
}
};

<do not remove the three backticks above>

#2

fixed i was missing two = in the first else if part