<PLEASE USE THIS TEMPLATE TO HELP YOU CREATE A GREAT POST!>
<Below this line, add a link to the EXACT exercise that you are stuck at.>
Hi.
I would like to give thank to all those people that have helped me with lesson 12.
Your help is appreciated.
But now I have a problem with lesson 13, and I have decided to ask for help, again.
I have inserted the code and I always get the same message “Oops, try again.
There was a problem with your syntax.”, but I have no idea what I’m doing wrong.
Can you please help me?
Thank you.
<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>
```The code I have inserted is:
var userChoice = prompt(“Do you choose Rock, Paper, Scissors?”);
var secondplayerChoice = prompt(“What is your choice Second Player”);
console.log(“First Player Choice:” + userChoice);
console.log(“Second Player Choice:” + secondplayerChoice);
var compare = function(firstChoice,secondChoice)
if (firstChoice: === secondChoice){
console.log(“The result is a tie!. Please make a new choice…”);
}
else{
if (firstChoice === Rock){
if (secondChoice === Paper){
console.log(“Paper Wins”);
else if (secondChoice === Scissors){
console.log(“Rock Wins”);
else{
if (firstChoice === Paper){
if (secondChoice === Rock){
console.log(“Paper Wins”);
else if (secondChoice === Scissors){
console.log(“Scissors Wins”);
else{
if (firstChoice === Scissors){
if (secondChoice === Rock){
console.log(“Rock Wins”);
else if (secondChoice === Paper){
console.log(“Scissors Wins”);
}
}
}
compare(userChoice,secondplayerChoice)
<do not remove the three backticks above>