RUN

Hello, World in TypeScript

Print a line of text with a typed variable. Press Run to try it, then change the code and run it again.

main.ts

const message: string = 'Hello, World!';
console.log(message);
Output

Press Run to see the output.

More TypeScript examples

Open the full TypeScript online compiler →