October 2008
Beginner to intermediate
544 pages
13h 21m
English
You can put together objects, properties, and methods to get a better description of an object, or to describe a process. In JavaScript, these pieces are separated by periods (also known as dots, as in Internet addresses). This is called dot syntax. Here are some examples of objects and their properties written in this way:
bicycle.wheels cat.paws.front.left computer.drive.dvd document.images.name window.status
And here are some examples of objects and methods written in dot syntax:
cat.purr() document.write() forms.elements.radio.click()
Read now
Unlock full access