Please enable JavaScript to use CodeHS

Video Game Design in JavaScript (2022)

Basic Data Structures

Students explore lists/arrays, maps/objects, sets, and grids. These are the essential basic data structures for any program development.

Lessons

8.1 Intro to Lists/Arrays

  • Intro to Lists/Arrays
  • Intro to Lists/Arrays Quiz
  • Making an Array
  • List of Places to Travel
  • List of Even Numbers

8.2 Indexing Into an Array

  • Indexing Into an Array
  • Indexing into an Array Quiz
  • Array Indexing Practice
  • Top Websites

8.3 Adding/Removing From an Array

  • Adding/Removing From an Array
  • Adding/Removing from an Array Quiz
  • Add/Remove From Array
  • Practice Push and Pop

8.4 Array Length and Looping Through Arrays

  • Array Length and Looping Through Arrays
  • Array Length and Looping Through Arrays Quiz
  • Print Shopping List
  • Sum Array
  • Product of List
  • +4 more

8.5 Iterating Over an Array

  • Examples: Iterating Over an Array
  • Iterating Over an Array Quiz
  • Coin Flips
  • Many Crazy Balls
  • Coin Flip Fun: Number of Heads and Tails
  • +3 more

8.6 Finding an Element in a List

  • Finding an Element in a List
  • Finding an Element in a List Quiz
  • Array indexOf
  • Who is in Line?

8.7 Removing an Element From an Array

  • Removing an Element From an Array
  • Removing an Element from an Array Quiz
  • Splice and Remove
  • Remove From Line

8.8 Intro to Objects/Maps

  • Intro to Objects/Maps
  • Intro to Objects / Maps Quiz
  • Phonebook
  • Sidekicks

8.9 Basics of Objects

  • Basics of Objects
  • Basics of Objects Quiz
  • Object Literal Phonebook
  • Object Property Phonebook
  • Beware Dot Notation!
  • +1 more

8.10 Iterating Over an Object

  • Iterating Over An Object
  • Iterating over an Object Quiz
  • Print Phonebook
  • Hogwarts

8.11 When Do I Use an Object?

  • When Do I Use An Object?
  • When do I use an Object Quiz
  • Facebook Friend Lists
  • Does the Key Exist?
  • Text Messages

8.12 Intro to Sets

  • Intro to Sets
  • Intro to Sets Quiz
  • Basic Sets
  • Vowels
  • Mutual Friends
  • +1 more

8.13 Intro to Grids

  • Intro to Grids
  • Intro to Grids Quiz
  • Grid Basics

8.14 Looping Over a Grid

  • Looping Over a Grid
  • Looping Over a Grid Quiz
  • Print Grid
  • Summing Grid

8.15 Grid Example: Get a Row

  • Grid Example: Get a Row
  • Grid Example: Get a Row Quiz
  • Get a Row
  • Grid Diagonal
  • Data Structures Exercises Badge

8.16 Basic Data Structures Quiz

  • Basic Data Structures Quiz

Courses that include this module