declare variable in ts code example
Example 1: how to declare variable in typescript
const variableSample: number = 0;
let variableSample: number = 0;
Example 2: declare and initialize variable in typescript
var name:string = "John";
var score1:number = 50;
var score2:number = 42.50
var sum = score1 + score2