Variables and the console
Lesson 9 of 20 · Web.Micro
Store values in variables and print them with console.log, the programmer’s flashlight.
JavaScript makes pages do things. console.log(...) prints a value in the console below the preview, which is the quickest way to see what your code is doing.
Check yourself
Which keyword creates a variable that cannot be reassigned?
Do it in the browser: a real HTML, CSS and JavaScript tool, a short mission and instant feedback. No install.
Start this lesson — free