declare variables in typescript 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
Example 3: variable declare in ts
let a:number =1
let b:Boolean = true
let c:string = "Grepper"