What is the difference between declaring a variable with this or var ?
this
var
var foo = 'bar'
or
this.foo = 'bar'
When do you use this and when var?
No comments:
Post a Comment