Types in TypeScript || Variable Types in TypeScript

In this video,I explained variable types in TypeScript. Feel free to comment. For more, please subscribe and press the BELL icon. Please visit my Angular Playlist. Please visit my YouTube videos. The code is as follows - 

type.ts - 
let a: number;
a = 10;
console.log(a);

let b: boolean;
b = true;
console.log(b);

let c: string;
c = "Hi...!!! Welcome Everyone";
console.log(c);

let d: any;
d = "Hi";
console.log(d);

d = 20;
console.log(d);


const i = 0;
console.log(i);

enum Values {V1, V2, V3};
let FirstValues = Values.V1;
console.log(FirstValues);

let SecondValues = Values.V2;
console.log(SecondValues);


Comments

Popular posts from this blog

CSS - Inline Type in CSS

Simple Program Using TypeScript || Program in TypeScript