Back to Pathways
Code Studio · Level 1

First JavaScript Command

Your first real code! Type a command, press Run, and make the robot speak your words. Every game you've ever played started with one line just like this.

15-20 min Ages 9-12 Real Code JavaScript
Command Guide

What is a text string?

A string is text wrapped in quotation marks. The quotes tell JavaScript, “keep these words together.”

text string "Hello Class"

JavaScript commands to try

Type one command per line in the console interface.

Console Interface

Type and run JavaScript.

Example code
say("Hello Class");
Robot ready to speak your strings

Type real JavaScript, then run it.