TypeScript

Type Annotations in TypeScript

Typescript uses type annotation to specify the data type of the variable, function or function return value. It uses the syntax :[type], where type is the Typescript type. Once you have annotated an identifier to be of a certain type, you can only use it as that Type. The Typescript compiler throws an error if you use the identifier as a different type.

Type Annotations in TypeScript Read More »

TypeScript Getting Started with Hello World Example

In this tutorial, let us learn how to build a simple hello world application using typescript. We will show you how to compile it using typescript standalone compiler (tsc) and run it using Node. Before getting started with the hello world application, you must install Typescript compiler, NodeJs and Visual Studio Code. We covered this in the previous tutorial on how to Install Typescript.

TypeScript Getting Started with Hello World Example Read More »

Scroll to Top