TypeScript playground

function greet(name: string): void {
    console.log(`Hello, ${name}!`);


TypeScript is a strongly typed programming language that builds on JavaScript. TypeScript code converts to JavaScript, which runs anywhere JavaScript runs.

⛫ homepage • αω tutorial • ⚘ community

Sandbox details

TypeScript version: 5.3
sandbox engine:     codapi
sandbox name:       typescript
allowed commands:   run
in-browser:         ✘

Usage example:

console.log("Hello, World!");

<codapi-snippet sandbox="typescript" editor="basic"></codapi-snippet>