how to assign type to variable in a sentence typescript code example
Example 1: tuple in typescript
let empId: number = 1;
let empName: string = "Steve";
// Tuple type variable
let employee: [number, string] = [1, "Steve"];
Example 2: angular type of string
if(typeof myVariable === 'string'){
//do
}