declaring type in typescript code example
Example 1: use type as value typescript
Typescript interfaces aren''t being compiled into the js output, and you can not use them at runtime
Example 2: typing in typescript
var name: string = "Anna";
let notes: (number | string)[] = ["Get Food", 23, "Call the previous number when betting"];