Skip to Main Content
Coding with JavaScript For Dummies
book

Coding with JavaScript For Dummies

by Chris Minnick, Eva Holland
May 2015
Beginner content levelBeginner
360 pages
6h 39m
English
For Dummies
Content preview from Coding with JavaScript For Dummies

Chapter 8

Making and Using Objects

In This Chapter

arrow Understanding objects

arrow Using properties and methods

arrow Creating objects

arrow Using dot notation

arrow Working with objects

“We cannot do anything with an object that has no name.”

— Maurice Blanchot “Literature and the Right to Death”

In this chapter, we show you why you should use objects, how to use them, and what special powers they have to make your programs and your programming better.

ontheweb Don’t forget to visit the website to check out the online exercises relevant to this chapter!

Object of My Desire

In addition to the five primitive data types (see Chapter 3,) JavaScript also has a data type called object. JavaScript objects encapsulate data and functionality in reusable components.

To understand what objects are and how they work, it’s helpful to compare JavaScript objects with physical, real-life things. Take a guitar, for example. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

HTML5 Programming with JavaScript For Dummies

HTML5 Programming with JavaScript For Dummies

John Paul Mueller
JavaScript For Kids For Dummies

JavaScript For Kids For Dummies

Chris Minnick, Eva Holland

Publisher Resources

ISBN: 9781119056072Purchase book