Please enable JavaScript to use CodeHS

Video Game Design in JavaScript (2022)

JavaScript and Graphics

Students learn the basics of JavaScript, including variables, user input, control structures, functions with parameters and return values, and basic graphics.

Lessons

2.1 Hello World

  • Hello World
  • Hello World Quiz
  • Hello World
  • Your Name and Hobby

2.2 Variables

  • Variables
  • Variables Quiz
  • Basic Variables
  • Apples and Oranges

2.3 User Input

  • User Input
  • User Input Quiz
  • Basic User Input
  • Grocery Store

2.4 Basic Math in JavaScript

  • Basic Math in JavaScript
  • Basic Math in JavaScript Quiz
  • Simple Calculator
  • Dollars to Pounds
  • Dividing Up Groups
  • +2 more

2.5 Using Graphics in JavaScript

  • Graphics
  • JavaScript Graphics Quiz
  • Graphics Hello World
  • Blue Circle
  • Red Rectangle
  • +3 more

2.6 Booleans

  • Booleans
  • Booleans Quiz
  • First Boolean
  • Do You Have a Dog?

2.7 Logical Operators

  • Logical Operators
  • Logical Operators Quiz
  • Light Switch
  • President
  • Wasting Time
  • +2 more

2.8 Comparison Operators

  • Comparison Operators
  • Comparison Operators Quiz
  • Voting Age
  • Grade Range
  • Rolling Dice
  • +1 more

2.9 If Statements

  • If Statements
  • If Statements Quiz
  • Negative Numbers
  • Great Names
  • Even and Odd
  • +3 more

2.10 For Loops in JavaScript

  • Basic For Loop
  • For Loops Quiz
  • For Loop
  • Chalkboard
  • The Worm
  • +1 more

2.11 General For Loops

  • General For Loop
  • General For Loop Quiz
  • Countdown
  • Count By Twos
  • Count By Sevens
  • +1 more

2.12 For Loop Practice

  • For Loop Examples
  • For Loop Examples Quiz
  • For Loop Sum
  • Better Sum
  • Factorial
  • +1 more

2.13 Random Numbers

  • Random Numbers
  • Random Numbers Quiz
  • Rolling a Die
  • Flipping a Coin
  • Lots of Dice
  • +1 more

2.14 While Loops

  • While Loops
  • While Loops Quiz
  • While Loop Countdown
  • Inventory
  • Fibonacci

2.15 Loop and a Half

  • Loop and a Half
  • Loop and a Half Quiz
  • Adding Up Numbers
  • Snake Eyes
  • Better Password Prompt

2.16 Functions and Parameters 1

  • Functions and Parameters 1
  • Functions and Parameters Quiz 1
  • Double Number
  • Square
  • Triple

2.17 Functions and Parameters 2

  • Functions and Parameters 2
  • Functions and Parameters Quiz 2
  • Sum Function
  • Area of Triangle
  • Height in Meters

2.18 Functions and Parameters 3

  • Functions and Parameters 3
  • Functions and Parameters Quiz 3
  • Draw Circles
  • Horizontal Lines
  • Graphics Stop Light
  • +1 more

2.19 Functions and Return Values 1

  • Functions and Return Values 1
  • Functions and Return Values Quiz
  • Double Number
  • Square with Return Values
  • Triple with Return Values

2.20 Functions and Return Values 2

  • Functions and Return Values 2
  • Functions and Return Values Quiz 2
  • Return Values
  • Is It Even?
  • Max

2.21 Local Variables and Scope

  • Local Variables and Scope
  • Local Variables and Scope Quiz
  • Return Values
  • Local Variables
  • JavaScript Exercises Badge

2.22 JavaScript and Graphics Challenges

  • Ghosts
  • Draw Something
  • JavaScript Challenges Badge

2.23 Javascript and Graphics Quiz

  • Javascript and Graphics Quiz

Courses that include this module