TypeScript Variables

Variables hold the data value which could be number, string or object type.

basically it create space in memory. Typescript variable follow same JavaScript naming rules.

Example Code:

Output:

 my name Shrikant Kumar my age: 32 Marital status: true and random value is:  42

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top