title: Can you help me debug this black-jack game?
body: <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;body&gt;
  &lt;h1&gt; Slap Jack &lt;/h1&gt;
  &lt;p id="message"&gt; &lt;/p&gt;
  &lt;button type="button" onclick="investMoney()"&gt; How much money are you betting? &lt;/button&gt;
  &lt;script type="text/javascript"&gt;
  
  var gambledMoney;
  var money;
  var investMoney = function() {
      gambledMoney = prompt("How much?");
      document.getElementById("message").innerHTML = gambledMoney;
  };
  var totalAmount;
  var card;
  var pullCard = function() {
      card = Math.floor(Math.random() * 14 + 1);
      totalAmount = +card;
      document.getElementById("test").innerHTML = card + " " +
          "Do you want to pull again?";
      document.getElementById("p").innerHTML = "Total points" + " "
      totalAmount;
  };
  
  &lt;/script&gt;
  &lt;p id="test"&gt; &lt;/p&gt;
  &lt;p id="p"&gt; &lt;/p&gt;
  &lt;button type="button" onClick="pullCard()"&gt; click me to pull a card &lt;/button&gt;
  
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Card is random, and it will display card when you define it. I also want the total of how many points you have to be displayed. When I try to run the code, nothing happens. </p>