Hello World in Typescript

Published on 22 June 2018 (Updated: 15 May 2023)

Welcome to the Hello World in Typescript page! Here, you'll find the source code for this program as well as a description of how the program works.

Current Solution

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

Hello World in Typescript was written by:

This article was written by:

If you see anything you'd like to change or update, please consider contributing.

How to Implement the Solution

This is quite possibly the smallest Hello World out there and it just so happens to be identical to Hello World in javascript (the language TypeScript is built on).

Simply put it logs the phrase Hello, World! to the console in your browser.

How to Run the Solution

Quite possibly the easiest way to run this is to open developer tools in your browser of choice, however, do note that the following is based on Chrome. This is often done by the shortcut "CRTL-SHIFT-I". Clicking on console at the top of the screen. Where the arrow is at the bottom of the console output is a text entry box and in there type the code from above(console.log("Hello, World!");). Finally, press enter and see Hello, World! in the Console output.