Menu
×
×
正确
function createPair@(6), @(6)(x: typeX, y: typeY): [typeX, typeY] {
return [x, y];
}
console.log(createPair<string, number>('Meaning', 42));
function createPair<typeX, typeY>(x: typeX, y: typeY): [typeX, typeY] {
return [x, y];
}
console.log(createPair<string, number>('Meaning', 42));
不正确
点击 此处 重试 正确
下一题 ❯function createPairw3exercise_input_no_0,w3exercise_input_no_1(x: typeX, y: typeY): [typeX, typeY] { return [x, y]; } console.log(createPair<string, number>('Meaning', 42)); |