Basics of Javascript Objects
We'll learn the basics of Javascript objects this time. Objects in Javascript are the building blocks of the language!
Almost everything in Javascript (except null and undefined primitive types) are objects.
We'll learn about:
How to create an object with the literal notation as well as the
new
keyword with the global constructor calledObject
.How to Access/Delete/Modify/Add properties in an object, using the dot notation and the bracket notation.
Properties defined by names as well as indexes.
Checking the existence of a property with the
in
keyword.Little bit of DOM Manipulation.
Related:
Warning: Invalid argument supplied for foreach() in /var/www/cssdeck.com/app/modules/labs/views/_details.php on line 68