Check out example codes for "typescript tuples". It will help you in understanding the concepts better.

Code Example 1

let decimal: number = 6;
let hex: number = 0xf00d;
let binary: number = 0b1010;
let octal: number = 0o744;
let big: bigint = 100n;Try

Code Example 2

var mytuple = [10, "Hello", true, 15.98];

Learn ReactJs, React Native from akashmittal.com