title: Javascript Increment by 1
body: <p>I'm new to JavaScript and I wrote code that invokes virtual users:</p>
  
  <pre><code>function User(){
      this.name = ""
      this.life = 100
      this.givingLifeToAplayer = function(PlayerName){
          PlayerName.life += 1
          console.log(this.name + " gave 1 life to " + PlayerName.name)
      }
  
  }
  var Yani = new User()
  var jenny = new User()
  var Robert = new User()
  Yani.name = "Yani"
  jenny.name = "Jenny"
  Robert.name = "Robert";
  Yani.givingLifeToAplayer(jenny)
  console.log("Yani has " + Yani.life + " Jenny has " + jenny.life)
  jenny.givingLifeToAplayer(Robert)
  console.log("Jenny has " + jenny.life + " is the biggest score to " + Robert.life)
  </code></pre>
  
  <p>How can I increment the <code>life</code> by 1 every time when a user pass <code>life</code> to another user?</p>