Howdy All!
I am still getting my head around a few base concepts. Any comments or
criticisms on the below definitions would be most welcome!
A function is an object.
JavaScript objects have properties:
- a var (which is an object or a primitive);
- a method (which is a function assigned to the object).
Note that since methods are functions and functions are objects we
could re-write the above to reflect a different view of an object's
properties.
JavaScript objects have properties:
- other objects (declared as a var or method);
- primitive vars.
Thanks for any advice!
Rob
:)
I am still getting my head around a few base concepts. Any comments or
criticisms on the below definitions would be most welcome!
A function is an object.
JavaScript objects have properties:
- a var (which is an object or a primitive);
- a method (which is a function assigned to the object).
Note that since methods are functions and functions are objects we
could re-write the above to reflect a different view of an object's
properties.
JavaScript objects have properties:
- other objects (declared as a var or method);
- primitive vars.
Thanks for any advice!
Rob
:)
Comment