use variable as a type typescript code example
Example 1: how to declare variable in typescript
const variableSample: number = 0;
let variableSample: number = 0;
Example 2: use type as value typescript
Typescript interfaces aren''t being compiled into the js output, and you can not use them at runtime