View Single Post
  #4 (permalink)  
Old May 29th, 2008, 07:24 PM
dparsons dparsons is offline
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Hmm. I am not sure I understand your statement:

"car1 is a reference to an object that behaves as the value of the "this" keyword."

First and formost this in JavaScript is used to denote what object owns a given item (function, variable, etc) as you have pointed out in the first part of your sentence but car1 is not a reference to an object that behaves like "this" (unless my understanding of the ECMA spec is incorrect) , it is an instance of your Car object thus pointing to that object.

Charlie, that was an excellent explination.

hth.
-Doug

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
.: Wrox Technical Editor / Author :.
Wrox Books 24 x 7
================================================== =========
Reply With Quote