how to create an array in typesript and display it on browser code example Example: type script array let list: number[] = [1, 2, 3];