skip to content →
ts-quiz
— ~/quiz/levels.ts
tsc --watch
● loading…
TS
home.ts
TS
levels.ts
MD
learn.md
TS
playground.ts
NEW
// tsc --watch · type-checking modules…
await
load
(
"quiz/levels.ts"
)
// streaming server components
◇ tsc 6.0.3 · compiling…
UTF-8
◇ scanning levels…
ts-quiz
— ~/quiz/loading.ts
tsc --watch
● loading…
TS
home.ts
TS
levels.ts
MD
learn.md
TS
playground.ts
NEW
example.ts
A
B
C
D
▾ COMPILING…
◇ tsc 6.0.3 · compiling…
UTF-8
◇ loading question…
ts-quiz
—
~/quiz/basic/01.ts
● 0 errors
TS
JS
PY
EN ▾
TS
home.ts
TS
levels.ts
MD
learn.md
TS
playground.ts
TS
challenges.ts
NEW
basic
/
question_01.ts
01 / 25 ·
0 correct
·
0 wrong
☆
/**
* @question 01 — What will happen when this code runs?
*/
What will happen when this code runs?
example.ts
strict: true
copy
let
x
:
number
=
5
;
let
y
:
string
=
x;
A
Runtime error
B
Code will compile successfully
C
Compile error - type 'number' is not assignable to type 'string'
D
y will equal '5'
reveal answer
⎋ exit
// keys: A B C D · ←/→ prev/next · enter to confirm · esc to exit
⚑ report
✓ tsc 6.0.3
UTF-8
◇ question 01/25 · 29637558:03