title: Codecademy javascript lesson 7/9 error
body: <p>I've been stuck on 7/9 for 2 nights now. This is a rock, paper scissor game.  I can't figure out what is wrong. I tried the online lint and it also says my line 22 is an error(Expected an identifier and instead saw 'else'). Following the instructions I wrote another else if under the existing code inside the compare function.</p>
  
  <p>my code :</p>
  
  <pre><code>var userChoice = prompt("Do you choose rock, paper or scissors?");
  var computerChoice = Math.random();
  if (computerChoice &lt; 0.34) {
  computerChoice ="rock"
  } else if(computerChoice &lt;= 0.67) {
  computerChoice ="paper";
  } else {
      computerChoice ="scissors";
  } console.log("Computer: " + computerChoice);
  var compare=function(choice1, choice2){
  if(choice1 === choice2) {
      return("The result is a tie!");
  }
  else if(choice1 ==="rock"){
      if(choice2 ==="scissors")
      return("rock wins");
  }
  else{
      return"paper wins";
  }
      else if(choice1 ==="paper");{
      if(choice2 ==="rock")
      return("paper wins");
  }
  else{
      return"scissors wins";
  }
  }
  </code></pre>