title: can anyone tell me whats wrong with this code
body: <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;script&gt;
  var userChoice=prompt("rock, paper or scissors ??");
  var pcChoice=Math.random();
  console.log(pcChoice);
  if(pcChoice&lt;=0.33){
      pcChoice="rock";
  }
  else if(pcChoice&gt;=0.34 &amp;&amp; pcChoice&lt;=0.66){
      pcChoice="paper";
  }
  else{
      pcChoice="scissors";
  }
  
  var compare=function(choice1,choice2){
  if(choice1=choice2){
      alert("it's a tie");
  }
  else if(choice1==="rock"){
      if(choice2==="scissors"){
          alert("rock wins");
      }
      else{
      alert("paper wins");
      }
  }
  else if(choice1===="paper"){
      if(choice2==="rock"){
          alert("paper wins");
      }
      else{
          alert("scissors wins");
      }
  }
      else if(choice1===="scissors"){
      if(choice2==="paper"){
          alert("scissors wins");
      }
      else{
          alert("rock wins");
      }
  }
  
  }
  compare(userChoice,pcChoice);
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>this is an easy rock paper scissors game
  i opened the page but the javascript didnt start the alert boxes, it means theres something wrong with my code
  please any help will be great
  im a beginner at javascript but i have great knowledge in html and css(doesnt help at all)
  can you review this code and tell me the problem please</p>