Professional Documents
Culture Documents
Objects - FEWD-001
Objects - FEWD-001
Menu
Previous Next
Unit 2 / Lesson 6
Objects
Estimated Time: 8-9 hours
Objects are a complex data type that allow you to bring together common
properties and behaviors into a single entity. Objects provide an excellent
way of organizing code that belongs together, help you avoid global
variables, and let us represent individual instances of some model.
For instance, you can take the idea of a person and come up with a
generalized model of that persons attributes. A person has a name, and can
say hello. Then we can have individual instances of that person model. We
might have an individual person named "Sue" who greets others by saying
"Howdy y'all", and another individual person named "Greta" who greets
others by saying "Hi there". All instances of a person share these traits (they
have a name and can greet others).
In this lesson you'll learn the syntax for interacting with objects in JavaScript.
Previous Next
https://courses.thinkful.com/gh-studentv2/lesson/2.6 2/2