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).
Log the message: Learning JavaScript
A quick 3-question quiz on this lesson — instant feedback.
Ready for more? These paid resources pick up where this lesson leaves off.
Project-based JavaScript Foundations video courses — the perfect paid next step after these free lessons.
Browse on Udemy →Hand-picked JavaScript Foundations books to master the fundamentals offline.
See on Amazon →Some links on this page are affiliate links: we may earn a commission at no extra cost to you. We only recommend tools we believe are genuinely useful.