Variables and the console
A variable stores a value under a name. let creates one: let firstName = "Sam";. Text values, called strings, go inside quotes.
console.log() prints a value to the console, the developer's notepad. Join text with +: console.log("Hello, " + firstName);
JavaScript doesn't run as you type. Press Run (or Ctrl + Enter) and watch the Console tab.
Example
let city = "Lisbon";
let year = 2026;
console.log("I'm visiting " + city + " in " + year);
Names are case-sensitive:
firstName and firstname are two different variables.Your tasks
0 of 2 done- Store your name in firstName
- Print a message that includes "Hello" and your name
Tutor
The tutor guides you toward the answer instead of handing it over. It uses your own Claude usage.
Quick check
What does console.log("2" + "2") print?
Press Run to see what your code prints.
No problems found. Unclosed tags, missing semicolons and errors show up here in plain words.