Skip to content
This repository was archived by the owner on Jan 3, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mandatory/5-groceries.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ As you you can have an Array of Objects, you can also store Arrays in Objects.
In this exercise, you'll practice:
- How to loop through the properties (keys) of an Object and read its values.
- How to access an Array stored inside an Object.
- How to access a specific property of an array and set it.
- How to access a specific property of an object and set it.

You're going shopping, and you need a shopping list. You've already created your weekly meal plan
that contains the missing ingredients for your menus. It is stored in the "weeklyMealPlan" object.
Expand Down
5 changes: 5 additions & 0 deletions mandatory/8-reading-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ Keep track of which books you've read and which books you want to read!
Exercise 1
=====

Create an array of objects, where each object describes a book and has properties for:
- The title (a string)
- Author (a string)
- and alreadyRead (a boolean indicating if you read it yet)

Loop through the array of books. For each book, log the book title and book author like so:

"The Hobbit by J.R.R. Tolkien"
Expand Down