how to assign a array to array typescript code example Example: type script array let list: number[] = [1, 2, 3];