Please enable JavaScript to use CodeHS

Chapter 4

Basic Data Structures

4.1 Intro to Arrays Intro to Arrays CodeHS Arrays and Mutability Making an Array Check Your Understanding Exercise: List of Odd Numbers
4.2 Indexing Into an Array Out of Bounds Warning Array Index Practice Check Your Understanding Exercise: Top Movies
4.3 Adding/Removing from an Array Adding Elements Removing Elements Add/Remove From Array Check Your Understanding Exercise: Practice Push and Pop
4.4 Array Length and Looping Through Arrays Length Looping Sum Array Print Shopping List Check Your Understanding Exercise: Product of List
4.5 Iterating Over an Array For Loop Iteration! Average Exam Grade Coin Flips Many Crazy Balls Check Your Understanding Exercise: Changing Circles
4.6 Finding an Element in an Array Writing an Array indexOf Function Array indexOf Check Your Understanding Exercise: Who is in Line?
4.7 Removing an Element from an Array Array Remove() Method Array Splice() Method Splice and Remove Check Your Understanding Exercise: Remove From Line
4.8 Intro to Objects/Maps Keys and Values Creating an Object, Map, or Dictionary Getting Items Out of a Dictionary Phonebook Check Your Understanding Exercise: Sidekicks
4.9 Iterating Over Objects Iterating with for...in Loops Print Phonebook Facebook Friend Lists Does the Key Exist? Check Your Understanding Exercise: Address Book
4.10 Intro to Sets Creating a New Set Adding to a Set Removing from a Set Finding the Size of a Set Searching the Set Basic Sets Check Your Understanding Exercise: Vowels
4.11 Intro to Grids Creating a New Grid Structure of a Grid Setting Elements in a Grid Accessing Elements in a Grid Grid Basics Print Grid Get a Row Check Your Understanding Exercise: Building a Database
4.12 Conclusion