Please enable JavaScript to use CodeHS

Tutorials


Clear

Juice Programs

Creator: Andy Bayer

Programs used in the Juice webinar!

Methods to Search Through Arrays

Creator: Rachel Devaney

Learn some helpful array methods that enable you to search through elements in an array: indexOf, includes(), find(), and filter().

Mouse Events in JavaScript

Creator: Rachel Devaney

Learn how to add mouse events to your CodeHS JavaScript programs!

Math Object in JavaScript

Creator: Ryan Hart

Seasonal Geometry

Creator: Andy Bayer

Deck the halls with trigonometry! We're using the sine function to create a holiday scene.

Seasonal Geometry Part Two

Creator: Andy Bayer

It's time to create some geometric snow!

What's New in the CodeHS JavaScript Library?

Creator: Andy Bayer

We've updated our JavaScript exercises to use a new version of our JavaScript library. What's different?

JavaScript Modules

Creator: Andy Bayer

JavaScript programs in CodeHS now support ES modules. This tutorial shows you how to make the most of them in your JavaScript programs!

How to use the CodeHS JS Library on your Website 2

Creator: Andy Bayer

This tutorial shows you how you can use the CodeHS Graphics JavaScript library outside of CodeHS on any website.

Asynchronous Input

Creator: Andy Bayer

Get input in JavaScript programs without the popup!

Looping Through Arrays in JavaScript

Creator: Rachel Devaney

Learn how to use for loops to access items in your arrays.

Into to JS (Corgi) Updates

Creator: Ryan Hart

Learn about some of the major changes in the new Intro to JavaScript (Corgi) course!

Create 3D Objects with Three.js

Creator: Matt Arnold

In this tutorial, you'll learn about the Three.js JavaScript library and create a 3D model. You'll use geometric shapes, point lights, and a scene camera to develop a 3D scene that includes a geometric object.

Working With Strings in JavaScript

Creator: Ryan Hart

In this tutorial, we will dive into JavaScript strings and explore ways we can work with and manipulate them.

Basic Objects in JavaScript

Creator: Ryan Hart

In this tutorial, we'll take a look at the basics of creating an object with properties and methods in JavaScript.

Advanced Objects (Pt 1) in JavaScript

Creator: Ryan Hart

In this tutorial, you will learn about object constructors and why they are essential for programs that create many objects.

Add Color with ANSI in JavaScript

Creator: Ryan Hart

In this tutorial, you will learn how to use ANSI sequences to stylize your JavaScript console output.

Animate 3D Objects with Three.js

Creator: Matt Arnold

In this tutorial, you'll create an animated 3D model with the Three.js library. You'll use geometric shapes, an orbit control system, and an animation function to develop a rotating 3D object that users can explore.

Debugging in JavaScript

Creator: Ryan Hart

In this tutorial, you will learn techniques to help you successfully debug your JavaScript programs.

Introduction to p5play

Creator: Ryan Hart

Basic Graphics in JavaScript

Creator: Ryan Hart

How to use the CodeHS JS Library on your Website

Creator: Zach Galant

This tutorial shows you how you can use the CodeHS Graphics JavaScript library outside of CodeHS on any website.

Sample A CSP Performance Task

Creator: David Burnham

Sample B CSP Performance Task

Creator: David Burnham

Programming Sprites in JavaScript

Creator: Andy Bayer

Animate sprites using JavaScript to create games in CodeHS

Visualizing Music with JavaScript

Creator: Calvin Studebaker

Step by step guide to creating your own music visualizations with JavaScript!

Variables in JavaScript

Creator: Rachel Devaney

Learn the basics of variables in JavaScript.

The Script Tag

Creator: Evelyn Hunter

Learn how to incorporate JavaScript code onto a website using the script tag.

If/Else Statements in JavaScript

Creator: Rachel Devaney

Learn the basics of if/else statements in JavaScript.

Basic Math in JavaScript

Creator: Ryan Hart

What is p5.js?

Creator: Zach Galant

Get a sneak peek at what p5.js is all about.

User Input in JavaScript

Creator: Rachel Devaney

Learn how to accept user input in your JavaScript programs.

Booleans and Logical Operators in JavaScript

Creator: Ryan Hart

For Loops in JavaScript

Creator: Rachel Devaney

Learn the basics of for loops in JavaScript.

Randomization in JavaScript

Creator: Ryan Hart

While Loops in JavaScript

Creator: Rachel Devaney

Learn the basics of while loops in JavaScript.

Basic Functions in JavaScript

Creator: Ryan Hart

Break and Continue in JavaScript

Creator: Rachel Devaney

Learn how to use the break and continue statements in your JavaScript programs.

Arrays in JavaScript

Creator: Rachel Devaney

Learn how to create arrays in JavaScript as well as how to add, change, and remove items.

Default Parameters in JavaScript

Creator: Ryan Hart