JS Output
Use console.log to inspect a value while learning. Page text and console output are separate destinations.
Where to run this
This example uses the JavaScript console playground. Select Run to execute it; the example does not run on this lesson page.
A practical example
const learner = "Mira";
console.log("Welcome, " + learner);
What happens
The console prints Welcome, Mira.