Putting the pieces together

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()

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.12.71.26