typescript constant code example
Example 1: create constant in class typescript
private static readonly myPrivateConstant: number = 5;
Example 2: variable declare in ts
let a:number =1
let b:Boolean = true
let c:string = "Grepper"
private static readonly myPrivateConstant: number = 5;
let a:number =1
let b:Boolean = true
let c:string = "Grepper"