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.
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.
Type and run JavaScript.
Example code
say("Hello Class");
- Run your code to see output.
Type real JavaScript, then run it.
Real code ran.
You used JavaScript commands and strings to make output appear.
Open Message Builder