Introduction to Computer Science
  • Introduction
  • Programming with Karel
    • Introduction to Programming with Karel
    • More Basic Karel
    • Karel Can't Turn Right
    • Functions in Karel
    • The Start Function
    • Top Down Design and Decomposition in Karel
    • Commenting Your Code
    • SuperKarel
    • For Loops
    • If Statements
    • If/Else Statements
    • While Loops in Karel
    • Control Structures Example
    • How to Indent Your Code
  • Basic JavaScript and Graphics
    • Hello World
    • Variables
    • User Input
    • Basic Math in JavaScript
    • Using Graphics in JavaScript
    • Booleans
    • Logical Operators
    • Comparison Operators
    • If Statements
    • For Loops in JavaScript
    • Random Numbers
    • While Loops
    • Loop-and-a-Half
    • Functions and Parameters
    • Functions and Return Values
    • Local Variables and Scope
  • Animation and Games
    • Timers
    • Using Timers
    • Mouse Events: Mouse Clicked
    • Mouse Events: Mouse Moved
    • Drawing Lines
    • Key Events
  • Basic Data Structures
    • Intro to Lists/Arrays
    • Indexing into an Array
    • Adding/Removing from an Array
    • Array Length and Looping Through Arrays
    • Iterating Over an Array
    • Finding an Element in a List
    • Removing an Element from an Array
    • Intro to Objects/Maps
    • Using Objects
    • Intro to Sets
    • Intro to Grids
    • Looping over a Grid
Powered by GitBook
On this page

Was this helpful?

Basic JavaScript and Graphics

You'll learn to use the fundamentals of JavaScript and computer graphics in this chapter.

PreviousHow to Indent Your CodeNextHello World

Last updated 5 years ago

Was this helpful?