Skip to main content

Posts

Showing posts with the label typescript string

Type Script Types,typescript number,typescript string,typescript null,typescript never,typescript undefined

Type Script Type Test Part 1 Action @ StackBlitz refereed from TypeScriptLang Base Types Description Any The super set of all data types Built-in types Includes number, string, boolean, void, null,never, and undefined User-defined types Includes Arrays, Enums, Classes, Interfaces etc…, output of the code : 
Any
Any Data type is a super set of all data types , it denotes dynamic type ,Defualt value : undefined
Declaration :
anydatatype: any;

Built-in types
number


Represents integer and floating type, Defualt value : undefined
Declaration :


numberdatatype: number;
string
Represents integer and floating type,