JavaScript
The Basics
1.1 The Console
You’ll run one line of JavaScript and see text appear in the console. This is the fastest way to check that your code is actually running.
Step 1
Type this in the editor and press Run:
console.log("Hello, world!");
You should see this in the console output:
Hello, world!
If you don’t see anything, try these checks:
- Make sure you typed
console.logexactly (spelling and dots matter). - Make sure your text is inside quotes:
" ".
Step 2
Replace the text inside the quotes, then press Run again:
Console
>
Output