[Project_owners] Javascript!

Matthew Wilson matthew at mjwilson.demon.co.uk
Sun Oct 26 10:40:57 PDT 2008


joe ertaba wrote:
> Thank you very much :)
> 
> So why it isn't better to use variable name (p in my case) always
> instead of "this" ?

You need "this" to refer to the current object. In general 
object-oriented programming, you don't always know what this is, so you 
can't refer to it as p.

Matthew


More information about the Project_owners mailing list