Please enable JavaScript to use CodeHS

Outline


1. JavaScript and Graphics
1.1 Hello World
Exercise 1.1.1 Your Name and Hobby
Exercise 1.1.2 Your Name and Hobby
Exercise 1.1.3 Your Name and Hobby
1.2 Variables
Exercise 1.2.1 Daily Activities
Exercise 1.2.2 Daily Activities
Exercise 1.2.3 Daily Activities
1.3 User Input
Exercise 1.3.1 Dinner Plans
Exercise 1.3.2 Dinner Plans
Exercise 1.3.3 Dinner Plans
1.4 Basic Math in JavaScript
Exercise 1.4.1 T-Shirt Shop
Exercise 1.4.2 T-Shirt Shop
Exercise 1.4.3 T-Shirt Shop
Exercise 1.4.4 Running Speed
1.5 Using Graphics in JavaScript
Exercise 1.5.1 Flag of the Netherlands
Exercise 1.5.2 Snowman
Exercise 1.5.3 Snowman
Exercise 1.5.4 Snowman
1.6 Programming with JavaScript Quiz
Unit Quiz 1.6.1 JavaScript and Graphics Quiz
Badge 1.6.2 Graphics Badge
2. Graphics Challenges
2.1 Collaborative Programming
Video 2.1.1 Pair-Programming
Check for Understanding 2.1.2 Pair-Programming
Connection 2.1.3 Why Practice Pair-Programming?
Free Response 2.1.4 Pair-Programming Reflection
2.2 Graphics Challenges
Challenge 2.2.1 Ghost
Challenge 2.2.2 Fried Egg
Challenge 2.2.3 Draw Something
3. JavaScript Control Structures
3.1 Booleans
Exercise 3.1.1 Do You Have a Dog?
Exercise 3.1.2 Do You Have a Dog?
Exercise 3.1.3 Do You Have a Dog?
3.2 Logical Operators
Exercise 3.2.1 Can You Graduate?
Exercise 3.2.2 Can You Graduate?
Exercise 3.2.3 Can You Graduate?
Exercise 3.2.4 School's Out
3.3 Comparison Operators
Exercise 3.3.1 Rolling Dice
Exercise 3.3.2 Girl Scout Designation
Exercise 3.3.3 Girl Scout Designation
Exercise 3.3.4 Girl Scout Designation
3.4 If Statements
Exercise 3.4.1 Teenagers
Exercise 3.4.2 Dietary Restrictions
Exercise 3.4.3 Dietary Restrictions
Exercise 3.4.4 Dietary Restrictions
3.5 For Loops in JavaScript
Exercise 3.5.1 Chalkboard
Exercise 3.5.2 Chalkboard
Exercise 3.5.3 Chalkboard
Exercise 3.5.4 The Worm
Exercise 3.5.5 Caterpillar
3.6 General For Loops
Exercise 3.6.1 Count By Sevens
Exercise 3.6.2 Count By Sevens
Exercise 3.6.3 Count By Sevens
Exercise 3.6.4 Powers of Two
3.7 For Loop Practice
Exercise 3.7.1 Better Sum
Exercise 3.7.2 Factorial
Exercise 3.7.3 All Dice Values
Exercise 3.7.4 All Dice Values
Exercise 3.7.5 All Dice Values
3.8 Random Numbers
Exercise 3.8.1 Lots of Rolls
Exercise 3.8.2 Lots of Rolls
Exercise 3.8.3 Lots of Rolls
Exercise 3.8.4 Random Color Square
3.9 While Loops
Exercise 3.9.1 Inventory
Exercise 3.9.2 Fibonacci
Exercise 3.9.3 Concentric Circles
Exercise 3.9.4 Concentric Circles
Exercise 3.9.5 Concentric Circles
3.10 Loop and a Half
Exercise 3.10.1 Snake Eyes
Exercise 3.10.2 Better Password Prompt
Exercise 3.10.3 Better Password Prompt
Exercise 3.10.4 Better Password Prompt
3.11 Javascript Control Structures Quiz
Unit Quiz 3.11.1 JavaScript Control Structures Quiz
4. Control Structures Challenges
4.1 Control Structures Challenges
Challenge 4.1.1 Guessing Game
Challenge 4.1.2 Circles in Circles
Challenge 4.1.3 Circles in Squares
Challenge 4.1.4 Happy Birthday!
5. Functions and Parameters
5.1 Functions and Parameters 1
Exercise 5.1.1 Square
Exercise 5.1.2 Square
Exercise 5.1.3 Square
Exercise 5.1.4 Triple
5.2 Functions and Parameters 2
Exercise 5.2.1 Area of Triangle
Exercise 5.2.2 Area of Triangle
Exercise 5.2.3 Area of Triangle
Exercise 5.2.4 Height in Meters
5.3 Functions and Parameters 3
Exercise 5.3.1 Vertical Lines
Exercise 5.3.2 Graphics Stop Light
Exercise 5.3.3 Pool Table
Exercise 5.3.4 Pool Table
Exercise 5.3.5 Pool Table
Exercise 5.3.6 Cityscape
5.4 Functions and Return Values 1
Exercise 5.4.1 Square with Return Values
Exercise 5.4.2 Triple with Return Values
Exercise 5.4.3 Triple with Return Values
Exercise 5.4.4 Triple with Return Values
Exercise 5.4.5 Gymnastics Mats
5.5 Functions and Return Values 2
Exercise 5.5.1 Is It Even?
Exercise 5.5.2 Max
Exercise 5.5.3 Max
Exercise 5.5.4 Max
5.6 Local Variables and Scope
Video 5.6.1 Local Variables and Scope
Check for Understanding 5.6.2 Local Variables and Scope Quiz
Example 5.6.3 Return Values
Exercise 5.6.4 Local Variables
Badge 5.6.5 JavaScript Exercises Badge
5.7 Functions and Parameters Quiz
Unit Quiz 5.7.1 Functions and Parameters Quiz
6. Functions Challenges
6.1 Functions Challenges
Challenge 6.1.1 Hailstone Sequence
Challenge 6.1.2 Balloons
Challenge 6.1.3 Grades
Challenge 6.1.4 Ghost Invasion!
Badge 6.1.5 Functions Challenges Badge
7. Animation and Games
7.1 Timers
Exercise 7.1.1 Crazy Ball
Exercise 7.1.2 Crazy Ball
Exercise 7.1.3 Crazy Ball
7.2 Random Circles
Exercise 7.2.1 Growing Circle
Exercise 7.2.2 Growing Circle
Exercise 7.2.3 Growing Circle
Exercise 7.2.4 Paint splatter
7.3 Random Ghosts
Exercise 7.3.1 Circle Wall
Exercise 7.3.2 Brick Wall
Exercise 7.3.3 Brick Wall
Exercise 7.3.4 Brick Wall
7.4 Bouncing Ball
Exercise 7.4.1 Hotspot Ball
Exercise 7.4.2 Hotspot Ball
Exercise 7.4.3 Hotspot Ball
Exercise 7.4.4 Trail
7.5 Mouse Events: Mouse Clicked
Exercise 7.5.1 Teleporting Ball
Exercise 7.5.2 Pause
Exercise 7.5.3 Pause
Exercise 7.5.4 Pause
7.6 Mouse Events: Mouse Moved
Exercise 7.6.1 Coordinates
Exercise 7.6.2 Coordinates
Exercise 7.6.3 Coordinates
Exercise 7.6.4 Target
7.7 Drawing Lines
Exercise 7.7.1 Leash
Exercise 7.7.2 Leash
Exercise 7.7.3 Leash
7.8 Key Events
Exercise 7.8.1 Basic Snake
Exercise 7.8.2 Basic Snake
Exercise 7.8.3 Basic Snake
7.9 Crazy Ball Game
Exercise 7.9.1 Click for Collision
Exercise 7.9.2 Drag and Drop
Exercise 7.9.3 Drag and Drop
Exercise 7.9.4 Drag and Drop
7.10 Animation and Games Quiz
Unit Quiz 7.10.1 Animation and Games Quiz
Badge 7.10.2 Animation Exercises Badge
8. Animation Challenges
8.1 Animation Challenges
Challenge 8.1.1 Blinking Rectangles
Challenge 8.1.2 Increasing Number of Shapes
9. Project: Breakout
9.1 Breakout
Challenge 9.1.1 Bricks
Challenge 9.1.2 Ball and Paddle
Challenge 9.1.3 Breakout
Badge 9.1.4 Breakout Badge
10. Final Project
10.1 Project Prep and Development
Free Response 10.1.1 Planning and Design
Pseudocode 10.1.2 Pseudocode
Challenge 10.1.3 Write the Code!
Presentation 10.1.4 Present your Project
11. Final Exam
11.1 Final Exam
Final 11.1.1 JavaScript Final Exam Pt. 1: Multiple Choice
12. Midterm
12.1 Midterm
Midterm 12.1.1 Midterm Pt 1: Multiple Choice
13. Functions and Parameters Practice
13.1 Functions and Parameters Practice
Challenge 13.1.1 Taking a Power
Challenge 13.1.2 Dot Rectangle
Challenge 13.1.3 Print the Date
Challenge 13.1.4 Grades
Challenge 13.1.5 Concentric Circles
Challenge 13.1.6 Graphics Staircase
Exercise 13.1.7 The Weekend
Badge 13.1.8 Functions and Parameters Badge
14. Extra Console Challenges
14.1 Prime Numbers
Challenge 14.1.1 Prime Numbers
Challenge 14.1.2 Find the Max
Challenge 14.1.3 Prime Factorization
Challenge 14.1.4 Fizz Buzz
Challenge 14.1.5 Grid Printer
Challenge 14.1.6 Number Sum
Challenge 14.1.7 Hailstone Sequence
Challenge 14.1.8 Pythagorean Triples
Challenge 14.1.9 Digit Array
Badge 14.1.10 Console Challenges Badge
15. More Graphics and Animation
15.1 Fun Snake
Challenge 15.1.1 Fun Snake 1
Challenge 15.1.2 Fun Snake 2
Challenge 15.1.3 Fun Snake 3
Challenge 15.1.4 Fun Snake 4 - A Full Game!
15.2 Fun Graphics Challenges
Challenge 15.2.1 Balloons
Challenge 15.2.2 Broccoli
Challenge 15.2.3 Blinking Rectangles
Challenge 15.2.4 Snowman Loop
Badge 15.2.5 Graphics Challenges Badge
16. Data Structures Challenge Problems
16.1 Conway's Game of Life
Exercise 16.1.1 Make The Grid
Exercise 16.1.2 Find Life
Exercise 16.1.3 Finish Up
16.2 Connect Four
Exercise 16.2.1 Make The Board
Exercise 16.2.2 Take Turns
Exercise 16.2.3 Find the Winner
17. Evolution Simulation
17.1 Evolution Simulation
Challenge 17.1.1 Evolution Simulation: Part 1
Challenge 17.1.2 Evolution Simulation: Part 2
Challenge 17.1.3 Evolution Simulation: Part 3
Challenge 17.1.4 Evolution Simulation: Part 4
Challenge 17.1.5 Evolution Simulation: Part 5
18. Demo Problems
18.1 Lesson 1
Practice 18.1.1 Square Method
Practice 18.1.2 Java Sum
Practice 18.1.3 Python Sum
Practice 18.1.4 JavaScript Sum
19. Extra Quiz Questions
19.1 Basic Javascript and Graphics
Quiz 19.1.1 Extra JavaScript Graphics Quesions
Quiz 19.1.2 Extra Logical Operators Questions
Quiz 19.1.3 Extra Functions and Return Values Questions
Quiz 19.1.4 Extra Local Variables and Scope Questions
19.2 Animation and Games
Quiz 19.2.1 Extra Timers Questions
Quiz 19.2.2 Extra Bouncing Ball Questions
Quiz 19.2.3 Extra Mouse Events: Mouse Clicked Questions
Quiz 19.2.4 Extra Key Events Questions
Quiz 19.2.5 Extra Crazy Ball Game Questions
19.3 Basic Data Structures
Quiz 19.3.1 Extra Intro to Lists/Arrays Questions
Quiz 19.3.2 Extra Indexing into an Array Questions
Quiz 19.3.3 Extra Adding/Removing from an Array Questions
Quiz 19.3.4 Extra Array Length and Looping Through Arrays Questions
Quiz 19.3.5 Extra Iterating Over an Array Questions
Quiz 19.3.6 Extra Finding an Element in a List Questions
Quiz 19.3.7 Extra Removing an Element from an Array Questions
Quiz 19.3.8 Extra Basics of Objects Questions
Quiz 19.3.9 Extra Intro to Sets Questions
Quiz 19.3.10 Extra Intro to Grids Questions
20. Visualizing Music
20.1 Visualizing Music
Video 20.1.1 Visualizing Music
Example 20.1.2 Our First Visualization
Example 20.1.3 Vertical Bars
Example 20.1.4 Vertical Bars with Color
Example 20.1.5 Changing Circles
Exercise 20.1.6 Your First Visualization
Exercise 20.1.7 Changing Colors
Exercise 20.1.8 Custom Colors
Exercise 20.1.9 Create Your Own Music Visualization
21. Data Structures
21.1 Intro to Lists/Arrays
Video 21.1.1 Intro to Lists/Arrays
Check for Understanding 21.1.2 Intro to Lists/Arrays Quiz
Example 21.1.3 Making an Array
Exercise 21.1.4 List of Places to Travel
Exercise 21.1.5 List of Even Numbers
21.2 Indexing Into an Array
Video 21.2.1 Indexing Into an Array
Check for Understanding 21.2.2 Indexing into an Array Quiz
Example 21.2.3 Array Indexing Practice
Exercise 21.2.4 Top Websites
21.3 Adding/Removing From an Array
Video 21.3.1 Adding/Removing From an Array
Check for Understanding 21.3.2 Adding/Removing from an Array Quiz
Example 21.3.3 Add/Remove From Array
Exercise 21.3.4 Practice Push and Pop
21.4 Array Length and Looping Through Arrays
Video 21.4.1 Array Length and Looping Through Arrays
Check for Understanding 21.4.2 Array Length and Looping Through Arrays Quiz
Example 21.4.3 Print Shopping List
Example 21.4.4 Sum Array
Exercise 21.4.5 Product of List
Exercise 21.4.6 Print Flight Itinerary
Exercise 21.4.7 Double List
Exercise 21.4.8 Evens Only List
Exercise 21.4.9 Reverse List
21.5 Iterating Over an Array
Video 21.5.1 Examples: Iterating Over an Array
Check for Understanding 21.5.2 Iterating Over an Array Quiz
Example 21.5.3 Coin Flips
Example 21.5.4 Many Crazy Balls
Exercise 21.5.5 Coin Flip Fun: Number of Heads and Tails
Exercise 21.5.6 Coin Flip Fun: Longest Streak of Heads
Exercise 21.5.7 Changing Circles
Exercise 21.5.8 Draw a Barcode
21.6 Finding an Element in a List
Video 21.6.1 Finding an Element in a List
Check for Understanding 21.6.2 Finding an Element in a List Quiz
Example 21.6.3 Array indexOf
Exercise 21.6.4 Who is in Line?
21.7 Removing an Element From an Array
Video 21.7.1 Removing an Element From an Array
Check for Understanding 21.7.2 Removing an Element from an Array Quiz
Example 21.7.3 Splice and Remove
Exercise 21.7.4 Remove From Line
21.8 Intro to Objects/Maps
Video 21.8.1 Intro to Objects/Maps
Check for Understanding 21.8.2 Intro to Objects / Maps Quiz
Example 21.8.3 Phonebook
Exercise 21.8.4 Sidekicks
21.9 Basics of Objects
Video 21.9.1 Basics of Objects
Check for Understanding 21.9.2 Basics of Objects Quiz
Example 21.9.3 Object Literal Phonebook
Example 21.9.4 Object Property Phonebook
Example 21.9.5 Beware Dot Notation!
Exercise 21.9.6 Address Book
21.10 Iterating Over an Object
Video 21.10.1 Iterating Over An Object
Check for Understanding 21.10.2 Iterating over an Object Quiz
Example 21.10.3 Print Phonebook
Exercise 21.10.4 Hogwarts
21.11 When Do I Use an Object?
Video 21.11.1 When Do I Use An Object?
Check for Understanding 21.11.2 When do I use an Object Quiz
Example 21.11.3 Facebook Friend Lists
Example 21.11.4 Does the Key Exist?
Exercise 21.11.5 Text Messages
21.12 Intro to Sets
Video 21.12.1 Intro to Sets
Check for Understanding 21.12.2 Intro to Sets Quiz
Example 21.12.3 Basic Sets
Exercise 21.12.4 Vowels
Exercise 21.12.5 Mutual Friends
Exercise 21.12.6 Total Network of Friends
21.13 Intro to Grids
Video 21.13.1 Intro to Grids
Check for Understanding 21.13.2 Intro to Grids Quiz
Example 21.13.3 Grid Basics
Exercise 21.13.4 Building a Database
21.14 Looping Over a Grid
Video 21.14.1 Looping Over a Grid
Check for Understanding 21.14.2 Looping Over a Grid Quiz
Example 21.14.3 Print Grid
Exercise 21.14.4 Summing Grid
21.15 Grid Example: Get a Row
Video 21.15.1 Grid Example: Get a Row
Check for Understanding 21.15.2 Grid Example: Get a Row Quiz
Example 21.15.3 Get a Row
Exercise 21.15.4 Grid Diagonal
Badge 21.15.5 Data Structures Exercises Badge
21.16 Data Structures Challenges
Challenge 21.16.1 Watercolor Grid
Unit Quiz 21.16.2 Data Structures Unit Quiz
Badge 21.16.3 Data Structures Challenges Badge
22. Project: Tic Tac Toe
22.1 Tic Tac Toe
Challenge 22.1.1 Tic Tac Toe: Part 1
Challenge 22.1.2 Tic Tac Toe: Part 2
Challenge 22.1.3 Tic Tac Toe: Full Game
Badge 22.1.4 Tic Tac Toe Badge
23. Project: Helicopter Game
23.1 Game Design: Helicopter
Video 23.1.1 Introduction to Helicopter
23.2 Basics
Video 23.2.1 Moving the Helicopter
Exercise 23.2.2 Moving the Helicopter
Video 23.2.3 Adding Obstacles
Exercise 23.2.4 Adding Obstacles
Video 23.2.5 Smoother Movement
Exercise 23.2.6 Smoother Movement
Badge 23.2.7 Smooth Movement Badge
23.3 Improvements
Video 23.3.1 Colliding with Walls
Exercise 23.3.2 Wall Collisions
Video 23.3.3 Colliding with Obstacles
Exercise 23.3.4 Obstacle Collisions
Video 23.3.5 Adding Terrain
Exercise 23.3.6 Adding Terrain
Video 23.3.7 Moving the Terrain
Exercise 23.3.8 Moving the Terrain
23.4 Polish
Video 23.4.1 Helicopter Image and Points!
Exercise 23.4.2 Image and Points
Video 23.4.3 Dust
Exercise 23.4.4 Dust
Video 23.4.5 More Obstacles
Exercise 23.4.6 More Obstacles
Challenge 23.4.7 Helicopter Extensions
Badge 23.4.8 Helicopter Badge
23.5 Intro to Computer Science Completed
Badge 23.5.1 Intro to Computer Science Badge
24. Intro to CS: JavaScript Pretest
24.1 Intro to CS: JavaScript Pretest
Notes 24.1.1 About the Pretest
Survey 24.1.2 Mindsets
Quiz 24.1.3 JavaScript Knowledge & Skills
25. Intro to CS: JavaScript Posttest
25.1 Intro to CS: JavaScript Posttest
Notes 25.1.1 About the Posttest