skip to content →
ts-quiz
— ~/loading.ts
tsc --watch
● loading…
TS
home.ts
TS
levels.ts
MD
learn.md
TS
playground.ts
NEW
// tsc --watch · type-checking modules…
await
load
(
"loading.ts"
)
// streaming server components
◇ tsc 6.0.3 · compiling…
UTF-8
◇ loading…
ts-quiz
—
js-medium/05.js
● 0 errors
TS
JS
PY
EN ▾
JS
home.js
JS
quiz.js
●
js-medium
·
5
/5
[exit]
function
f
(
a
,
b
=
2
,
...
rest
) {
return
[a, b, rest];
}
console.
log
(
f
(
1
,
undefined
,
3
,
4
));
What does this print?
A
[1, 2, [3, 4]]
B
[1, undefined, [3, 4]]
C
[1, 2, 3, 4]
D
TypeError
← prev
✓ es2024
UTF-8