Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
TypeScript
/
Basic types
What does value as Account do at runtime?
from Basic types
TypeScript 6
beginner
1 min
What does value as Account do at runtime?
Nothing; the assertion is erased and does not inspect value.
It creates an Account instance and copies matching fields.
It throws if a required property is absent.
It converts every property to its declared type.
Check
Ask AI about this kata
Report an error
next kata
What does this program print?
Predict the output
A new version is available
Reload