6. what if first choice is a rock


#1


what is my problem?i checked other too but couldnt find mine

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

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

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





#2

Start by identifying what your code is doing differently from what you want it to be doing.

You can't just skip ahead to the conclusion, you have to take the steps required to find it.