Skip to main content
Frontend
Interviews
.dev
Problems
735. TypeScript Non-null Assertion Risk
Medium
•
...
Select the best answer.
const
el
=
document
.
getElementById
(
'root'
)
!
;
Risk of using ! here?
Compile failure
Runtime null crash possible
Slower code
Changes DOM type
Submit Answer
Reveal Answer
Select an option and submit your answer.
Next Problem
Auto-advance on correct answer