DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
JavaScript Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
medium
JavaScript
What does the ES2022 `cause` option do?
A
It makes an error retry automatically
B
It lets you attach the ORIGINAL underlying error when throwing a new, more descriptive error, preserving the full chain instead of discarding it
C
It's a way to specify which line caused the error
D
It converts a warning into an error
Check Answer