主页
TypeScript
TypeScript 元组 (Tuples)
demo_tuples
运行 ❯
×
更改方向
保存代码
更改主题
// define our tuple let ourTuple: [number, boolean, string]; // initialize correctly ourTuple = [5, false, 'Coding God was here']; console.log(ourTuple);
[ 5, false, 'Coding God was here' ]