JavaScript Loops, Arrays and Objects

Storing, tracking and handling data is a large part of computer programming. Arrays provide a method for storing multiple values into a single variable. That makes an array a convenient way to pass around a list of items.

In this course, you'll learn how to create arrays and use loops to access their contents. You'll also learn some advanced methods that make working with arrays easier.

What you'll learn

  • Loops
  • Arrays
  • Objects
  • DRY Programming

Simplify Repetitive Tasks with Loops

Loops are a way of repeating code -- they're very handy for repetitive tasks. Loops are frequently used to cycle through an array and perform an action on each item in the array.

  • Introducing Loops, Arrays and Objects1:29
  • What are Loops?7:52
  • Review Loops5 questions
  • Complete the Loop1 objective
  • Create a while Loop1 objective
  • A Closer Look at Loop Conditions8:06
  • A Closer Look At Loop Conditions1 objective
  • `do ... while` Loops6:57
  • Review while loops, do...while loops, and Loop Conditions5 questions
  • Create a `do...while` loop1 objective
  • For Loops7:21
  • Create a for Loop1 objective
  • Exiting Loops4:05
  • Review For Loops and Loop Exiting6 questions
  • The Refactor Challenge2:52
  • The Refactor Challenge Solution2:22
  • The Refactor Challenge, Part 24:16
  • Refactor Using a Loop1 objective

Tracking Multiple Items with Arrays

Arrays provide a way to store multiple pieces of information in a single thing. An array is basically a list of values: numbers, strings, boolean values or even other arrays.

  • What is an Array?4:51
  • Create an Array2 objectives
  • Accessing Items in an Array3:32
  • Review Array Basics5 questions
  • Using Array Indices2 objectives
  • Adding Data to Arrays8:02
  • Adding Items to an Array2 objectives
  • Removing Items From Arrays4:20
  • Review Adding and Removing Items from Arrays5 questions
  • Removing Items from an Array2 objectives
  • Using For Loops with Arrays8:05
  • Iterating through an Array1 objective
  • Useful Array Methods9:08
  • Using Array Methods1 objective
  • Two-Dimensional Arrays8:31
  • Create a Two Dimensional Array3 objectives
  • Build a Quiz Challenge, Part 11:36
  • Build a Quiz Challenge, Part 1 Solution4:41
  • Build a Quiz Challenge, Part 25:40
  • Build a Quiz Challenge, Part 2 Solution3:34
  • Review Array Methods, Iterating and Two-Dimensional Arrays6 questions

Tracking Data Using Objects

Objects are a large part of JavaScript programming. In this lesson, we'll look at one part of JavaScript objects: using objects to store key / value pairs. Objects provide a flexible way to keep track of data by associating a name with a particular value. They're used all the time in JavaScript programming and, using a particular object format called JSON, they're used to transmit data between web sites, databases and web pages.

  • The Object Literal4:39
  • Create an Empty JavaScript Object1 objective
  • Add Properties to an Object1 objective
  • Accessing Object Properties6:21
  • Review Object Basics5 questions
  • Access and Set Object Properties2 objectives
  • Using `for in` to Loop Through an Object's Properties5:31
  • Accessing All of the Properties in an Object2 objectives
  • Mixing and Matching Arrays and Objects3:17
  • Create an Array of Objects2 objectives
  • JavaScript Object Notation3:44
  • Review `for in` Loops, Arrays of Objects and JSON5 questions
  • The Build an Object Challenge, Part 11:08
  • The Build an Object Challenge, Part 1 Solution2:24
  • The Build an Object Challenge, Part 21:23
  • The Build an Object Challenge, Part 2 Solution3:56
  • The Student Record Search Challenge1:26
  • The Student Record Search Challenge Solution7:26
  • Review Loops, Arrays, and Objects9 questions

results matching ""

    No results matching ""