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

Code Example 1

let list: number[] = [1, 2, 3];

Code Example 2

const listOfStrings: string[] = ['hello', 'mom'];

Code Example 3

enum Color {
  Red = "red",
  Green = 2,
  Blue = 4,
}
let c: Color = Color.Green;Try

Learn ReactJs, React Native from akashmittal.com