Lessons

In the following lessons, we'll cover the basics of programming using JavaScript. In each lesson, we'll learn a concept in the context of controlling a Sphero robot. Don't have a Sphero robot? No problem! You can still follow along by using the built-in simulator.

Variables

Variables are how we store information in programming. In these lessons, we'll learn how to store different types of information.

Lesson 1: Strings

In programming, we store information using variables. In this lesson, we'll learn to store text in a string variable to set the color of the Sphero robot.

Lesson 2: Numbers

Variables can also be numbers. In this lesson, we'll learn to store numbers in a number variable to control the blinking of the Sphero robot.

Lesson 3: Arrays

Sometimes, we want a single variable to store a series of values. In this lesson, we'll learn to store multiple values in an array variable to control the series of colors we want the Sphero to emit.

Lesson 4: Objects

We often have related but disparate data that we want to store together. In this lesson, we'll store both color and the delay in blinking in a single object variable.

Lesson 5: Arrays of Objects

In this final lesson on variables, we will see how all of these data types combine together by defining a series of actions that we want the ball to take.


Projects

Build projects that combine skills together.

Build a web app that teaches the fundamentals of JavaScript, HTML, and CSS.

Build a web app that helps people find food pantries near them.

Fix bugs and add features to a todo list app.

Navigate a robot to clear a minefield.


Playgrounds

Practice your skills in an open-ended environment.

Control a Sphero robot using JavaScript.