Please enable JavaScript to use CodeHS

Texas Computer Science 1

Data Structures

Students are introduced to lists/arrays, maps/objects, sets, and grids. Students learn how each is used to store and manipulate data, and make choices about which to use given the context.

Lessons

12.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

12.2 Indexing Into an Array

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

12.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

12.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

12.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

12.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?

12.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

12.8 Array Challenges

  • Using Built in Objects in JavaScript
  • Greatest Divisor
  • Finding Prime Numbers

Courses that include this module