title: the value of the variable doesnt change when i add something
body: <p>the defaultMoney value change when I add money but When I add money again it just changes the value of the defaultMoney and doesnt add to value of it</p>
  
  <p>here is the code</p>
  
  <pre><code>function addmoney(){
  var defaultMoney=0;
  var newMoney=document.form.newMoney.value;
  
  defaultMoney+=newMoney
  
  document.getElementById("money").innerHTML="defaultMoney";
  }   
  </code></pre>