title: Code inside of if statement runs even when condition is false
body: <p>For some reason the user is prompted to answer even when the condition is not met.</p>
  
  <pre><code>function makePurchase()
  {
      if (locationName !== "SpacePort"){alert("You are not at the SpacePort.S")}
      if (locationName === "SpacePort");{
          userBuys= prompt(userName + ". "+"What do you purchase? Lasers, Sensors, or Repair Ship.");
          {if(userBuys === "Lasers" &amp;&amp; credits&gt;=1000){lasers+10; credits-1000; alert("You have purchased lasers.")};
          if(userBuys === "Sensors"){};if(userBuys === "Repair Ship"){shipDamage=0}}
      }
  }
  </code></pre>