Check out example codes for "how to declare a boolean in typescript". It will help you in understanding the concepts better.

Code Example 1

let isDone: boolean = false;

Code Example 2

// There is no int type, use number
const myInt: number = 17;
const myDecimal: number = 17.5

Learn ReactJs, React Native from