let list: Array<number> = [1, 2, 3]; ... Declare a tuple type let x: [string, number]; // Initialize it x = ['hello', 10]; // OK // Initialize it ...
確定! 回上一頁