how to define an array under a class in type script code example Example: type script array let list: number[] = [1, 2, 3];