The Browser Console
Meet the browser console — your built-in playground for writing and testing JavaScript instantly.
Step 1 of 5
Your built-in JavaScript playground
Every browser ships with a set of developer tools (DevTools), and one of the most useful panels is the Console. The console lets you type JavaScript code and see the result immediately — no files to create, no setup required. Developers use it constantly: to test quick ideas, inspect values, debug problems, and experiment with code before putting it into a real project.
Think of it this way: Think of the console like a sketchpad for testing ideas. An artist doesn't paint directly on the final canvas — they sketch on scratch paper first to try out compositions and colors. The console is your scratch paper for code.
Learn more on MDN