Check out example codes for "variable declare in ts". It will help you in understanding the concepts better.

Code Example 1

let a:number =1
let b:Boolean = true
let c:string = "Grepper"

Learn ReactJs, React Native from akashmittal.com