If you're seeing this message, it means we're having trouble loading external resources for Khan Academy.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Objects

1 project
1 article
3 challenges
3 talkthroughs
Learn how to store complex data in objects.

Intro to Objects

Pamela introduces objects, a way to store a bag of properties in a single variable.

Modifying Objects

Pamela shows how to modify objects while your program is running, to change existing properties or add new ones.

Arrays of Objects

Pamela shows how to store arrays of objects - a very powerful tool for your programs.

Project: Bookshelf

<p>What are your favorite books? Make a shelf of them!</p> <ol> <li>This program only displays one book. Make an array of books (at least two of them), and use a loop to display a row of them.</li> <li>Add an author property to each ...