I have been dealing and learning about Objects and OOP in JS in the past few days and I good a basic understanding how they work now.
One thing that bothers me, and I have problems with to understand, is where is the difference between this:
var bird = "Birdy: var bird"
and this
this.bird = "Birdy: this.bird"
Both of them will add a property(bird) to the object. In this case this points to the object Window. Where is the difference? Why are people using the *this.*bird method? What are the advantages of it(could someone show me an example where this.bird is superior to var bird)?
Let´s take this tutorial for example: why is he using this there? Isnt this redundant? Couldnt this entire thing be done removing the this and/or replacing it?