In this lesson, students learn about lists/arrays and how to access an element in an array with an index so they can create ordered collections of items and use them in their programs.
Students will be able to:
In this lesson, students continue to work with array indexing to get and assign array values so they can incorporate arrays/lists into their programs and handle data more efficiently.
Students will be able to:
In this lesson, students learn how to add and remove elements at the end of an array using the push
and pop
methods.
Students will be able to:
push
methodpop
methodIn this lesson, students will be able to get the length of an array and learn how to loop through an array so they can have more functionality with arrays in their programs.
Students will be able to:
In this lesson, students will be able to get the length of an array and loop through an array so they can use arrays in problems involving random numbers and JavaScript graphics.
Students will be able to:
In this lesson, students learn and use another method on a list, indexOf
in order to find elements in lists within their programs.
Students will be able to:
indexOf
method to find the index of a particular element in an array.In this lesson, students will learn how to use the splice
and remove
methods to remove an element from an array to add more functionality to their programs.
Students will be able to:
splice
and remove
methods to remove an element from an array.We learn what simulations are, how they are used, and we simulate gravity and Conway’s Game of Life.