type script is array code example Example 1: typescript array let list: number[] = [1, 2, 3]; Example 2: type script array let list: number[] = [1, 2, 3];