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:

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

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

Documentation