Hello World in TypeScript

Published on 30 September 2020 (Updated: 30 September 2020)

Hello World in TypeScript

In this article, we will tackle Hello World in TypeScript.

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.