← JavaScript Foundations
1 / 26
Lesson 1 — console.log
Seeing output
console.log(...) prints whatever you pass it to the browser console — the developer window where JavaScript talks back to you. Open the Console tab and press Run to see it.
Why it matters: logging is the first tool every JS developer reaches for to check values and debug.
Tip: you can log several things at once: console.log("score", 10).
Want it another way?
Task
Make the program also log: Learning JavaScript
Run your code — when the output matches the task, you will see a green check. Then mark the lesson complete.
Test your knowledge
A quick 3-question quiz on this lesson — instant feedback.