• Skip to primary navigation
  • Skip to main content
  • Skip to footer
Code The Dream School
Code the Dream Labs Logo

Code The Dream School

Main hub for class materials for Code the Dream’s classes

  • Code the Dream Home

Search Code The Dream School

Lesson 1.4 – Programming Fundamentals: JavaScript Arrays

Learning Objectives

  • Store Multiple Values in an Array
  • Loop Through Arrays
  • Multidimensional Arrays

Lesson Materials

If you are using Odin as your primary learning materials:

The following material is an excerpt from The Odin Project – Fundamentals Part 4. That section also covers loops, which we covered last week, and Test Driven Development which will be covered later in this class. You can use the link to review the loop content and preview the test driven development content this week if you like, but the main information you need for this week is in the following excerpt:

Arrays

Strings and numbers may be our building blocks, but as your scripts get more complex, you’re going to need a way to deal with large quantities of them. Luckily, JavaScript has a couple of data types that are used for just that. An Array is simply an ordered collection of items (Strings, numbers, or other things).

  1. This tutorial is a great introduction.
  2. This article covers some of the most useful built-in array methods. These fundamentals are something you’ll use every day, so don’t rush too much and miss out!

Knowledge Check

This section contains questions for you to check your understanding of the lessons from this week and last week on your own. If you’re having trouble answering a question, click it and review the material it links to.

  • What is an array?
  • What are arrays useful for?
  • How do you access an array element?
  • How do you change an array element?
  • What are some useful array properties?
  • What are some useful array methods?
  • What are loops useful for?

If you are using Treehouse as your primary learning materials, please go through the following courses in treehouse:

  • JavaScript Arrays (123 minutes)

Assignments

Coding Assignment

Your assignment for this week can be found here. When the link opens you will need to fork the repo (click the fork button). And then follow the instructions in the file created to do your assignment. You will then turn in your forked link once you have finished all of the questions in the assignment.

Mindset Assignment

Being afraid of the unknown is part of the human experience. None of us know what tomorrow may bring. The interesting thing about that fear is that it can be positive or negative. If you’ve been excited about the prospect of starting a new job, starting a new relationship, or venturing to a new place, you’re experiencing the positive side. If you’re worried about something in the future that may be an unpleasant experience like having to confront someone about a problem or ending a personal or professional relationship, you’re experiencing the negative side.

You may be feeling this way in this class; excited to learn new things and start a new chapter in your life, frustrated if you struggle with a concept, happy when you understand and succeed, worried about how to juggle class with the rest of what is going on in your life.

Whether your fear of the unknown is positive or negative, embracing the unknown allows you to continue on your journey and see where it goes. Remember that

“The expert in anything was once a beginner”
— Helen Hayes

This week think about where you’re at in your journey.

– So far in class, have you had any “aha” moments?
– What have you enjoyed the most? What has been the hardest?
– What were you excited/worried about before class started? How do you feel about what’s still to come in this class and in your journey ahead? 

When you’ve completed your Coding Assignment, and have read and thought about the mindset questions above, submit ALL of your assignments (link to your code on replit.com and mindset) using the Homework Assignment Submission Form.

Footer

Copyright © 2025 Code the Dream School | All Rights Reserved | Privacy Policy