Understanding Nullable Types in Typescript with examples

Understanding Nullable Types in Typescript with examples: Nullable type is introduced in typescript 2.0, this helps us to keep initialized objects to have some values other than null all the time.   Default number | Assigning null: For eg: let home2OfficeKm = 10; home2OfficeKm = null;     Works fine in typescript 2.0 earlier versions, if you do not want

109 total views, 1 views today

» Read more

Typescript Hello world in local system Example

Step 1: Install Typescript in Your Local Machine Install typescript in your local machine to compile and test typescript. Instructions / steps to install typescript can be found in the below link We need typescript in local,because typescript is not like javascript which can directly run on the browser. It has to be converted to javascript before running in any

114 total views, 1 views today

» Read more