how to gassign type for an array that can contain elements of different types js code example Example: type script array let list: number[] = [1, 2, 3];