Foundations badge

Fundamentals Part 5

Foundations Course

Introduction

Lesson Overview

This section contains a general overview of topics that you will learn in this lesson.

  • Creating objects.
  • Accessing object properties.
  • Being able to use multiple object operators.
  • Being able to use some powerful array functions.

Objects

Objects are a very important part of the JavaScript language, and while for the most part you can accomplish simple and even intermediate tasks without worrying about them, any real project that you’re going to attempt is going to feature Objects. The uses of Objects in JavaScript can get deep relatively quickly, so for the moment we’re only going to cover the basics. There’ll be an in-depth dive later.

  1. This JavaScript.info article is the best place to get started with Objects.
  2. The MDN tutorial isn’t bad either, so check it out if you need another take on the subject.

Intermediate/Advanced Array Magic

Besides being a quick and handy way to store data, arrays also have a set of functions for manipulating that data in very powerful ways. Once you begin to master these functions you will start to see ways to use them all over the place! There are really only a handful of these functions… but as you’ll soon see, the possibilities of what you can do with them are near endless.

  1. Start out by watching this video from Wes Bos. To follow along, use your local Javascript30 repository. If you don’t have the repo yet, clone it from here.
  2. Watch and code with Part 2 of Wes Bos’s array series.

Assignment

At this point you just need a little more practice! Go back to the JavaScript exercises that we introduced in the Fundamentals 4 project and complete the following:

  • calculator
  • palindromes
  • fibonacci
  • getTheTitles
  • findTheOldest

Don’t remember how to setup and test the exercises? No worries! Check out the Fundamentals Part 4 lesson for a refresher. If you feel yourself getting overwhelmed or stuck, don’t be afraid to go back and review or ask for help on our Discord!

Note: Solutions for these exercises can be found in the ‘solutions’ folder of each exercise.

Knowledge Check

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

Additional Resources

This section contains helpful links to related content. It isn’t required, so consider it supplemental.

Are you interested in accelerating your web development learning experience?

Get started
Thinkful Logo

Thinkful

  • 5-6 months

    5-6 months

  • Job Guarantee

    Job Guarantee

  • 1-on-1 Mentorship

    1-on-1 Mentorship