declare variables typescript code example
Example 1: declare and initialize variable in typescript
var name:string = "John";
var score1:number = 50;
var score2:number = 42.50
var sum = score1 + score2
Example 2: variable declare in ts
let a:number =1
let b:Boolean = true
let c:string = "Grepper"