Please enable JavaScript to use CodeHS

Alternate Exercises: Intro to JS (Golden) - Outline

  1. JavaScript and Graphics

    1. 1.1 Hello World

    2. Exercise 1.1.1 Your Name and Hobby
    3. Exercise 1.1.2 Your Name and Hobby
    4. Exercise 1.1.3 Your Name and Hobby
    5. 1.2 Variables

    6. Exercise 1.2.1 Daily Activities
    7. Exercise 1.2.2 Daily Activities
    8. Exercise 1.2.3 Daily Activities
    9. 1.3 User Input

    10. Exercise 1.3.1 Dinner Plans
    11. Exercise 1.3.2 Dinner Plans
    12. Exercise 1.3.3 Dinner Plans
    13. 1.4 Basic Math in JavaScript

    14. Exercise 1.4.1 T-Shirt Shop
    15. Exercise 1.4.2 T-Shirt Shop
    16. Exercise 1.4.3 T-Shirt Shop
    17. Exercise 1.4.4 Running Speed
    18. 1.5 Using Graphics in JavaScript

    19. Exercise 1.5.1 Flag of the Netherlands
    20. Exercise 1.5.2 Snowman
    21. Exercise 1.5.3 Snowman
    22. Exercise 1.5.4 Snowman
    23. 1.6 Programming with JavaScript Quiz

    24. Unit Quiz 1.6.1 JavaScript and Graphics Quiz
    25. Badge 1.6.2 Graphics Badge
  2. Graphics Challenges

    1. 2.1 Collaborative Programming

    2. Video 2.1.1 Pair-Programming
    3. Check for Understanding 2.1.2 Pair-Programming
    4. Connection 2.1.3 Why Practice Pair-Programming?
    5. Free Response 2.1.4 Pair-Programming Reflection
    6. 2.2 Graphics Challenges

    7. Challenge 2.2.1 Ghost
    8. Challenge 2.2.2 Fried Egg
    9. Challenge 2.2.3 Draw Something
  3. JavaScript Control Structures

    1. 3.1 Booleans

    2. Exercise 3.1.1 Do You Have a Dog?
    3. Exercise 3.1.2 Do You Have a Dog?
    4. Exercise 3.1.3 Do You Have a Dog?
    5. 3.2 Logical Operators

    6. Exercise 3.2.1 Can You Graduate?
    7. Exercise 3.2.2 Can You Graduate?
    8. Exercise 3.2.3 Can You Graduate?
    9. Exercise 3.2.4 School's Out
    10. 3.3 Comparison Operators

    11. Exercise 3.3.1 Rolling Dice
    12. Exercise 3.3.2 Girl Scout Designation
    13. Exercise 3.3.3 Girl Scout Designation
    14. Exercise 3.3.4 Girl Scout Designation
    15. 3.4 If Statements

    16. Exercise 3.4.1 Teenagers
    17. Exercise 3.4.2 Dietary Restrictions
    18. Exercise 3.4.3 Dietary Restrictions
    19. Exercise 3.4.4 Dietary Restrictions
    20. 3.5 For Loops in JavaScript

    21. Exercise 3.5.1 Chalkboard
    22. Exercise 3.5.2 Chalkboard
    23. Exercise 3.5.3 Chalkboard
    24. Exercise 3.5.4 The Worm
    25. Exercise 3.5.5 Caterpillar
    26. 3.6 General For Loops

    27. Exercise 3.6.1 Count By Sevens
    28. Exercise 3.6.2 Count By Sevens
    29. Exercise 3.6.3 Count By Sevens
    30. Exercise 3.6.4 Powers of Two
    31. 3.7 For Loop Practice

    32. Exercise 3.7.1 Better Sum
    33. Exercise 3.7.2 Factorial
    34. Exercise 3.7.3 All Dice Values
    35. Exercise 3.7.4 All Dice Values
    36. Exercise 3.7.5 All Dice Values
    37. 3.8 Random Numbers

    38. Exercise 3.8.1 Lots of Rolls
    39. Exercise 3.8.2 Lots of Rolls
    40. Exercise 3.8.3 Lots of Rolls
    41. Exercise 3.8.4 Random Color Square
    42. 3.9 While Loops

    43. Exercise 3.9.1 Inventory
    44. Exercise 3.9.2 Fibonacci
    45. Exercise 3.9.3 Concentric Circles
    46. Exercise 3.9.4 Concentric Circles
    47. Exercise 3.9.5 Concentric Circles
    48. 3.10 Loop and a Half

    49. Exercise 3.10.1 Snake Eyes
    50. Exercise 3.10.2 Better Password Prompt
    51. Exercise 3.10.3 Better Password Prompt
    52. Exercise 3.10.4 Better Password Prompt
    53. 3.11 Javascript Control Structures Quiz

    54. Unit Quiz 3.11.1 JavaScript Control Structures Quiz
  4. Control Structures Challenges

    1. 4.1 Control Structures Challenges

    2. Challenge 4.1.1 Guessing Game
    3. Challenge 4.1.2 Circles in Circles
    4. Challenge 4.1.3 Circles in Squares
    5. Challenge 4.1.4 Happy Birthday!
  5. Functions and Parameters

    1. 5.1 Functions and Parameters 1

    2. Exercise 5.1.1 Square
    3. Exercise 5.1.2 Square
    4. Exercise 5.1.3 Square
    5. Exercise 5.1.4 Triple
    6. 5.2 Functions and Parameters 2

    7. Exercise 5.2.1 Area of Triangle
    8. Exercise 5.2.2 Area of Triangle
    9. Exercise 5.2.3 Area of Triangle
    10. Exercise 5.2.4 Height in Meters
    11. 5.3 Functions and Parameters 3

    12. Exercise 5.3.1 Vertical Lines
    13. Exercise 5.3.2 Graphics Stop Light
    14. Exercise 5.3.3 Pool Table
    15. Exercise 5.3.4 Pool Table
    16. Exercise 5.3.5 Pool Table
    17. Exercise 5.3.6 Cityscape
    18. 5.4 Functions and Return Values 1

    19. Exercise 5.4.1 Square with Return Values
    20. Exercise 5.4.2 Triple with Return Values
    21. Exercise 5.4.3 Triple with Return Values
    22. Exercise 5.4.4 Triple with Return Values
    23. Exercise 5.4.5 Gymnastics Mats
    24. 5.5 Functions and Return Values 2

    25. Exercise 5.5.1 Is It Even?
    26. Exercise 5.5.2 Max
    27. Exercise 5.5.3 Max
    28. Exercise 5.5.4 Max
    29. 5.6 Local Variables and Scope

    30. Video 5.6.1 Local Variables and Scope
    31. Check for Understanding 5.6.2 Local Variables and Scope Quiz
    32. Example 5.6.3 Return Values
    33. Exercise 5.6.4 Local Variables
    34. Badge 5.6.5 JavaScript Exercises Badge
    35. 5.7 Functions and Parameters Quiz

    36. Unit Quiz 5.7.1 Functions and Parameters Quiz
  6. Functions Challenges

    1. 6.1 Functions Challenges

    2. Challenge 6.1.1 Hailstone Sequence
    3. Challenge 6.1.2 Balloons
    4. Challenge 6.1.3 Grades
    5. Challenge 6.1.4 Ghost Invasion!
    6. Badge 6.1.5 Functions Challenges Badge
  7. Animation and Games

    1. 7.1 Timers

    2. Exercise 7.1.1 Crazy Ball
    3. Exercise 7.1.2 Crazy Ball
    4. Exercise 7.1.3 Crazy Ball
    5. 7.2 Random Circles

    6. Exercise 7.2.1 Growing Circle
    7. Exercise 7.2.2 Growing Circle
    8. Exercise 7.2.3 Growing Circle
    9. Exercise 7.2.4 Paint splatter
    10. 7.3 Random Ghosts

    11. Exercise 7.3.1 Circle Wall
    12. Exercise 7.3.2 Brick Wall
    13. Exercise 7.3.3 Brick Wall
    14. Exercise 7.3.4 Brick Wall
    15. 7.4 Bouncing Ball

    16. Exercise 7.4.1 Hotspot Ball
    17. Exercise 7.4.2 Hotspot Ball
    18. Exercise 7.4.3 Hotspot Ball
    19. Exercise 7.4.4 Trail
    20. 7.5 Mouse Events: Mouse Clicked

    21. Exercise 7.5.1 Teleporting Ball
    22. Exercise 7.5.2 Pause
    23. Exercise 7.5.3 Pause
    24. Exercise 7.5.4 Pause
    25. 7.6 Mouse Events: Mouse Moved

    26. Exercise 7.6.1 Coordinates
    27. Exercise 7.6.2 Coordinates
    28. Exercise 7.6.3 Coordinates
    29. Exercise 7.6.4 Target
    30. 7.7 Drawing Lines

    31. Exercise 7.7.1 Leash
    32. Exercise 7.7.2 Leash
    33. Exercise 7.7.3 Leash
    34. 7.8 Key Events

    35. Exercise 7.8.1 Basic Snake
    36. Exercise 7.8.2 Basic Snake
    37. Exercise 7.8.3 Basic Snake
    38. 7.9 Crazy Ball Game

    39. Exercise 7.9.1 Click for Collision
    40. Exercise 7.9.2 Drag and Drop
    41. Exercise 7.9.3 Drag and Drop
    42. Exercise 7.9.4 Drag and Drop
    43. 7.10 Animation and Games Quiz

    44. Unit Quiz 7.10.1 Animation and Games Quiz
    45. Badge 7.10.2 Animation Exercises Badge
  8. Animation Challenges

    1. 8.1 Animation Challenges

    2. Challenge 8.1.1 Blinking Rectangles
    3. Challenge 8.1.2 Increasing Number of Shapes
  9. Project: Breakout

    1. 9.1 Breakout

    2. Challenge 9.1.1 Bricks
    3. Challenge 9.1.2 Ball and Paddle
    4. Challenge 9.1.3 Breakout
    5. Badge 9.1.4 Breakout Badge
  10. Final Project

    1. 10.1 Project Prep and Development

    2. Free Response 10.1.1 Planning and Design
    3. Pseudocode 10.1.2 Pseudocode
    4. Challenge 10.1.3 Write the Code!
    5. Presentation 10.1.4 Present your Project
  11. Final Exam

    1. 11.1 Final Exam

    2. Final 11.1.1 JavaScript Final Exam Pt. 1: Multiple Choice
  12. Midterm

    1. 12.1 Midterm

    2. Midterm 12.1.1 Midterm Pt 1: Multiple Choice
  13. Functions and Parameters Practice

    1. 13.1 Functions and Parameters Practice

    2. Challenge 13.1.1 Taking a Power
    3. Challenge 13.1.2 Dot Rectangle
    4. Challenge 13.1.3 Print the Date
    5. Challenge 13.1.4 Grades
    6. Challenge 13.1.5 Concentric Circles
    7. Challenge 13.1.6 Graphics Staircase
    8. Exercise 13.1.7 The Weekend
    9. Badge 13.1.8 Functions and Parameters Badge
  14. Extra Console Challenges

    1. 14.1 Prime Numbers

    2. Challenge 14.1.1 Prime Numbers
    3. Challenge 14.1.2 Find the Max
    4. Challenge 14.1.3 Prime Factorization
    5. Challenge 14.1.4 Fizz Buzz
    6. Challenge 14.1.5 Grid Printer
    7. Challenge 14.1.6 Number Sum
    8. Challenge 14.1.7 Hailstone Sequence
    9. Challenge 14.1.8 Pythagorean Triples
    10. Challenge 14.1.9 Digit Array
    11. Badge 14.1.10 Console Challenges Badge
  15. More Graphics and Animation

    1. 15.1 Fun Snake

    2. Challenge 15.1.1 Fun Snake 1
    3. Challenge 15.1.2 Fun Snake 2
    4. Challenge 15.1.3 Fun Snake 3
    5. Challenge 15.1.4 Fun Snake 4 - A Full Game!
    6. 15.2 Fun Graphics Challenges

    7. Challenge 15.2.1 Balloons
    8. Challenge 15.2.2 Broccoli
    9. Challenge 15.2.3 Blinking Rectangles
    10. Challenge 15.2.4 Snowman Loop
    11. Badge 15.2.5 Graphics Challenges Badge
  16. Data Structures Challenge Problems

    1. 16.1 Conway's Game of Life

    2. Exercise 16.1.1 Make The Grid
    3. Exercise 16.1.2 Find Life
    4. Exercise 16.1.3 Finish Up
    5. 16.2 Connect Four

    6. Exercise 16.2.1 Make The Board
    7. Exercise 16.2.2 Take Turns
    8. Exercise 16.2.3 Find the Winner
  17. Evolution Simulation

    1. 17.1 Evolution Simulation

    2. Challenge 17.1.1 Evolution Simulation: Part 1
    3. Challenge 17.1.2 Evolution Simulation: Part 2
    4. Challenge 17.1.3 Evolution Simulation: Part 3
    5. Challenge 17.1.4 Evolution Simulation: Part 4
    6. Challenge 17.1.5 Evolution Simulation: Part 5
  18. Demo Problems

    1. 18.1 Lesson 1

    2. Practice 18.1.1 Square Method
    3. Practice 18.1.2 Java Sum
    4. Practice 18.1.3 Python Sum
    5. Practice 18.1.4 JavaScript Sum
  19. Extra Quiz Questions

    1. 19.1 Basic Javascript and Graphics

    2. Quiz 19.1.1 Extra JavaScript Graphics Quesions
    3. Quiz 19.1.2 Extra Logical Operators Questions
    4. Quiz 19.1.3 Extra Functions and Return Values Questions
    5. Quiz 19.1.4 Extra Local Variables and Scope Questions
    6. 19.2 Animation and Games

    7. Quiz 19.2.1 Extra Timers Questions
    8. Quiz 19.2.2 Extra Bouncing Ball Questions
    9. Quiz 19.2.3 Extra Mouse Events: Mouse Clicked Questions
    10. Quiz 19.2.4 Extra Key Events Questions
    11. Quiz 19.2.5 Extra Crazy Ball Game Questions
    12. 19.3 Basic Data Structures

    13. Quiz 19.3.1 Extra Intro to Lists/Arrays Questions
    14. Quiz 19.3.2 Extra Indexing into an Array Questions
    15. Quiz 19.3.3 Extra Adding/Removing from an Array Questions
    16. Quiz 19.3.4 Extra Array Length and Looping Through Arrays Questions
    17. Quiz 19.3.5 Extra Iterating Over an Array Questions
    18. Quiz 19.3.6 Extra Finding an Element in a List Questions
    19. Quiz 19.3.7 Extra Removing an Element from an Array Questions
    20. Quiz 19.3.8 Extra Basics of Objects Questions
    21. Quiz 19.3.9 Extra Intro to Sets Questions
    22. Quiz 19.3.10 Extra Intro to Grids Questions
  20. Visualizing Music

    1. 20.1 Visualizing Music

    2. Video 20.1.1 Visualizing Music
    3. Example 20.1.2 Our First Visualization
    4. Example 20.1.3 Vertical Bars
    5. Example 20.1.4 Vertical Bars with Color
    6. Example 20.1.5 Changing Circles
    7. Exercise 20.1.6 Your First Visualization
    8. Exercise 20.1.7 Changing Colors
    9. Exercise 20.1.8 Custom Colors
    10. Exercise 20.1.9 Create Your Own Music Visualization
  21. Data Structures

    1. 21.1 Intro to Lists/Arrays

    2. Video 21.1.1 Intro to Lists/Arrays
    3. Check for Understanding 21.1.2 Intro to Lists/Arrays Quiz
    4. Example 21.1.3 Making an Array
    5. Exercise 21.1.4 List of Places to Travel
    6. Exercise 21.1.5 List of Even Numbers
    7. 21.2 Indexing Into an Array

    8. Video 21.2.1 Indexing Into an Array
    9. Check for Understanding 21.2.2 Indexing into an Array Quiz
    10. Example 21.2.3 Array Indexing Practice
    11. Exercise 21.2.4 Top Websites
    12. 21.3 Adding/Removing From an Array

    13. Video 21.3.1 Adding/Removing From an Array
    14. Check for Understanding 21.3.2 Adding/Removing from an Array Quiz
    15. Example 21.3.3 Add/Remove From Array
    16. Exercise 21.3.4 Practice Push and Pop
    17. 21.4 Array Length and Looping Through Arrays

    18. Video 21.4.1 Array Length and Looping Through Arrays
    19. Check for Understanding 21.4.2 Array Length and Looping Through Arrays Quiz
    20. Example 21.4.3 Print Shopping List
    21. Example 21.4.4 Sum Array
    22. Exercise 21.4.5 Product of List
    23. Exercise 21.4.6 Print Flight Itinerary
    24. Exercise 21.4.7 Double List
    25. Exercise 21.4.8 Evens Only List
    26. Exercise 21.4.9 Reverse List
    27. 21.5 Iterating Over an Array

    28. Video 21.5.1 Examples: Iterating Over an Array
    29. Check for Understanding 21.5.2 Iterating Over an Array Quiz
    30. Example 21.5.3 Coin Flips
    31. Example 21.5.4 Many Crazy Balls
    32. Exercise 21.5.5 Coin Flip Fun: Number of Heads and Tails
    33. Exercise 21.5.6 Coin Flip Fun: Longest Streak of Heads
    34. Exercise 21.5.7 Changing Circles
    35. Exercise 21.5.8 Draw a Barcode
    36. 21.6 Finding an Element in a List

    37. Video 21.6.1 Finding an Element in a List
    38. Check for Understanding 21.6.2 Finding an Element in a List Quiz
    39. Example 21.6.3 Array indexOf
    40. Exercise 21.6.4 Who is in Line?
    41. 21.7 Removing an Element From an Array

    42. Video 21.7.1 Removing an Element From an Array
    43. Check for Understanding 21.7.2 Removing an Element from an Array Quiz
    44. Example 21.7.3 Splice and Remove
    45. Exercise 21.7.4 Remove From Line
    46. 21.8 Intro to Objects/Maps

    47. Video 21.8.1 Intro to Objects/Maps
    48. Check for Understanding 21.8.2 Intro to Objects / Maps Quiz
    49. Example 21.8.3 Phonebook
    50. Exercise 21.8.4 Sidekicks
    51. 21.9 Basics of Objects

    52. Video 21.9.1 Basics of Objects
    53. Check for Understanding 21.9.2 Basics of Objects Quiz
    54. Example 21.9.3 Object Literal Phonebook
    55. Example 21.9.4 Object Property Phonebook
    56. Example 21.9.5 Beware Dot Notation!
    57. Exercise 21.9.6 Address Book
    58. 21.10 Iterating Over an Object

    59. Video 21.10.1 Iterating Over An Object
    60. Check for Understanding 21.10.2 Iterating over an Object Quiz
    61. Example 21.10.3 Print Phonebook
    62. Exercise 21.10.4 Hogwarts
    63. 21.11 When Do I Use an Object?

    64. Video 21.11.1 When Do I Use An Object?
    65. Check for Understanding 21.11.2 When do I use an Object Quiz
    66. Example 21.11.3 Facebook Friend Lists
    67. Example 21.11.4 Does the Key Exist?
    68. Exercise 21.11.5 Text Messages
    69. 21.12 Intro to Sets

    70. Video 21.12.1 Intro to Sets
    71. Check for Understanding 21.12.2 Intro to Sets Quiz
    72. Example 21.12.3 Basic Sets
    73. Exercise 21.12.4 Vowels
    74. Exercise 21.12.5 Mutual Friends
    75. Exercise 21.12.6 Total Network of Friends
    76. 21.13 Intro to Grids

    77. Video 21.13.1 Intro to Grids
    78. Check for Understanding 21.13.2 Intro to Grids Quiz
    79. Example 21.13.3 Grid Basics
    80. Exercise 21.13.4 Building a Database
    81. 21.14 Looping Over a Grid

    82. Video 21.14.1 Looping Over a Grid
    83. Check for Understanding 21.14.2 Looping Over a Grid Quiz
    84. Example 21.14.3 Print Grid
    85. Exercise 21.14.4 Summing Grid
    86. 21.15 Grid Example: Get a Row

    87. Video 21.15.1 Grid Example: Get a Row
    88. Check for Understanding 21.15.2 Grid Example: Get a Row Quiz
    89. Example 21.15.3 Get a Row
    90. Exercise 21.15.4 Grid Diagonal
    91. Badge 21.15.5 Data Structures Exercises Badge
    92. 21.16 Data Structures Challenges

    93. Challenge 21.16.1 Watercolor Grid
    94. Unit Quiz 21.16.2 Data Structures Unit Quiz
    95. Badge 21.16.3 Data Structures Challenges Badge
  22. Project: Tic Tac Toe

    1. 22.1 Tic Tac Toe

    2. Challenge 22.1.1 Tic Tac Toe: Part 1
    3. Challenge 22.1.2 Tic Tac Toe: Part 2
    4. Challenge 22.1.3 Tic Tac Toe: Full Game
    5. Badge 22.1.4 Tic Tac Toe Badge
  23. Project: Helicopter Game

    1. 23.1 Game Design: Helicopter

    2. Video 23.1.1 Introduction to Helicopter
    3. 23.2 Basics

    4. Video 23.2.1 Moving the Helicopter
    5. Exercise 23.2.2 Moving the Helicopter
    6. Video 23.2.3 Adding Obstacles
    7. Exercise 23.2.4 Adding Obstacles
    8. Video 23.2.5 Smoother Movement
    9. Exercise 23.2.6 Smoother Movement
    10. Badge 23.2.7 Smooth Movement Badge
    11. 23.3 Improvements

    12. Video 23.3.1 Colliding with Walls
    13. Exercise 23.3.2 Wall Collisions
    14. Video 23.3.3 Colliding with Obstacles
    15. Exercise 23.3.4 Obstacle Collisions
    16. Video 23.3.5 Adding Terrain
    17. Exercise 23.3.6 Adding Terrain
    18. Video 23.3.7 Moving the Terrain
    19. Exercise 23.3.8 Moving the Terrain
    20. 23.4 Polish

    21. Video 23.4.1 Helicopter Image and Points!
    22. Exercise 23.4.2 Image and Points
    23. Video 23.4.3 Dust
    24. Exercise 23.4.4 Dust
    25. Video 23.4.5 More Obstacles
    26. Exercise 23.4.6 More Obstacles
    27. Challenge 23.4.7 Helicopter Extensions
    28. Badge 23.4.8 Helicopter Badge
    29. 23.5 Intro to Computer Science Completed

    30. Badge 23.5.1 Intro to Computer Science Badge
  24. Intro to CS: JavaScript Pretest

    1. 24.1 Intro to CS: JavaScript Pretest

    2. Notes 24.1.1 About the Pretest
    3. Survey 24.1.2 Mindsets
    4. Quiz 24.1.3 JavaScript Knowledge & Skills
  25. Intro to CS: JavaScript Posttest

    1. 25.1 Intro to CS: JavaScript Posttest

    2. Notes 25.1.1 About the Posttest