Froquiz
Home
Quizzes
Senior Challenge
Get Certified
Blog
About
🇬🇧
en
Sign In
Start Quiz
🇬🇧
en
Sign In
Start Quiz
Loading...
Quiz Topics
1
2
3
4
5
6
7
8
9
10
01
/ 10
Why should this.name = "CustomError" be assigned after super() call when creating an error class?
Auto Skip
Report Issue
super() sets name automatically; assigning this.name is unnecessary
super() assigns this.name as "Error"; this.name = "CustomError" needed to override
this.name only for logging; does not affect instanceof check; optional
this.name = "CustomError" must be assigned before super(); assigning after is ineffective
Previous
Next