A focused TypeScript editor
Try typed parameters, object shapes and small functions.
Experiment with TypeScript syntax without creating a local project. Transpile a snippet, run the resulting JavaScript and inspect the console.
No account needed for browser-local experiments. Cloud saving is optional.
type Person = { name: string; active: boolean };
const people: Person[] = [{ name: "Subo", active: true }];
console.log(people.filter(person => person.active));Try typed parameters, object shapes and small functions.
Run the transpiled JavaScript in an isolated browser worker.
Save locally or export the source to continue in your editor.
Open the playground and select TypeScript.
Write a short snippet with console.log calls.
Press Run and inspect the output or available syntax error locations.
This tool transpiles TypeScript; it is not a complete project type checker. Type annotations disappear before execution. Network access and imports are blocked in the quick worker, and execution has a three-second limit.
Create a Ticket type and a describeTicket function that returns the passenger and seat separated by " — ".
Load the starterWrite activeNames(users: User[]): string[] so that it returns the names of the active users. Print the result joined by a comma and a space.
Load the starterWrite a generic function first<T>(items: T[]): T | undefined that returns the first item of an array, or undefined for an empty array. Print the result for a number array, a string array and an empty array.
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.