Hello World in TypeScript

Published on (Updated: 30 September 2020)

Hello World in TypeScript

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:

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).

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

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.