title: document.title returns undefined. Why is this?
body: <p>I have this variable here:</p>
  
  <pre><code>var money=0;
  </code></pre>
  
  <p>This variable updates constantly so keep that in mind. I'm using the property</p>
  
  <pre><code>document.title
  </code></pre>
  
  <p>to display the variable "money" in the page title like this:</p>
  
  <pre><code>var money=0;
  document.title = money;
  </code></pre>
  
  <p>When i refresh the page, the title says undefined so i'm guessing</p>
  
  <pre><code>document.title
  </code></pre>
  
  <p>returned undefined. Why is this? also, would the variable "money" constantly get updated in the pages title? If not, how could i make that happen? Thanks!</p>