title: Syntax Error, Illegal return statement
body: <p>Hi I have this code right now </p>
  
  <pre><code>var compare = function (choice1, choice2)
  {
      if (choice1 === choice2)
      {
          return "The result is a tie!";
      }
  };
  
  if (choice1 === "Rock")
  {
      if (choice2 === "Scissors")
      {
          return "Rock wins!";
      }
      else (choice2 = "Paper")
      {
          return "Paper wins!";
      }
  }
  </code></pre>
  
  <p>but I keep getting a Synatax error, illegal return statement.</p>
  
  <p>I don't understand why I am getting this error, am I doing something wrong?  I believe the syntax is all correct.</p>
  
  <p>I am using an online editor by the way, not an actual IDE.  </p>