Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Treehouse

JavaScript Objects Course (How To)

via Treehouse

Overview

Objects are an essential part of JavaScript; they provide a flexible way to keep track of data by associating a name with a particular value. In this course, you'll learn the basics of JavaScript objects as a data structure (using objects to store key/value pairs).

Syllabus

Object Basics

Learn JavaScript object literal syntax for creating a variable that stores data as property/value pairs. You'll also retrieve and set values in objects using property names with bracket and dot notation.

Chevron 7 steps
  • What is an Object?

    3:41

  • Create an Object Literal

    1:50

  • Create an Object

    2 objectives

  • Access Object Properties

    2:53

  • Set the Value of Object Properties

    4:00

  • Access and Set Object Properties

    2 objectives

  • Review Object Basics

    5 questions

Loop Through Objects

Learn how to access each property name and property value by looping through an object's keys. You'll also combine arrays and objects to create even more powerful ways to store and retrieve information.

Chevron 9 steps
  • Use `for in` to Loop Through an Object's Properties

    4:31

  • Loop Through an Object's Properties

    2 objectives

  • instruction

    Useful JavaScript Object Methods

  • Store Objects in Arrays

    3:45

  • Create an Array of Objects

    2 objectives

  • Build an Object Challenge

    1:17

  • Build an Object Challenge – One Solution

    3:09

  • Display an Array of Objects on the Page – One Solution

    7:14

  • Review `for in` and Arrays of Objects

    6 questions

Taught by

Guil Hernandez

Reviews

Start your review of JavaScript Objects Course (How To)

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.