TypeScript playground

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

greet("World");

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:

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

Documentation