Zest.

TypeScript: Hello world

A short, tested TypeScript example for hello world. Copy it and adjust the names and paths for your project.

TypeScript
const greeting: string = "Hello, World!";
console.log(greeting);

Find it in Zest

Search for “typescript hello world” in Zest and this example appears above the results, with other matches to choose from. Searches stay private.

More TypeScript examples

All TypeScript examples