Console beside your code
Read console output as you try a snippet.
Run JavaScript snippets and read console output beside your code. Source locations help you inspect errors.
No account needed for browser-local experiments. Cloud saving is optional.
const names = ["Browse", "Build", "Create"];
names.forEach((name, index) => {
console.log(`${index + 1}. ${name}`);
});Read console output as you try a snippet.
Source locations are shown when the compiler or runtime provides them.
Save a local draft or export your code before leaving.
Open the playground and select JavaScript.
Replace the example with your code, then press Run.
Read the console or click an error location to inspect your source.
The quick JavaScript runner has a short execution limit. It is for snippets, not Node.js programs or a full npm project.
Use filter() to keep only phones where inStock is true. Print their model names with map().
Load the starterCalculate price × quantity for each item and add the amounts. Try a for...of loop first, then reduce().
Load the starterUse a Set to remove duplicate tags while keeping the order in which each tag first appears. Print the unique tags on one line, separated by a comma and a space.
Load the starterSort the books from cheapest to most expensive without changing the original array. Print the titles on one line, then print the title of the first item in the original array to prove it did not move.
Load the starterUse reduce to build an object that counts how many orders have each status. Print the paid, pending and shipped counts separated by spaces.
Load the starterTurn a lowercase title into Title Case. Split it into words, capitalize the first letter of each word, join the words again and print the result.
Load the starterLocal drafts stay in this browser’s storage. Export a ZIP or source file to keep a separate copy. Cloud saves need a configured account and are sent to the site’s database.
Running code in this playground does not call an AI provider.
Use test data for experiments. Browser code, source exports, console messages, and debug reports can expose values you put in them.