Quiz · Errors · lesson 6 of 10Quiz — the Error objectWhat properties does an Error object have, and which built-in kinds of error extend it?[A]An Error has message, line and column in every environment. All kinds of error share one name, "Error", so a TypeError and a RangeError can be told apart only by reading the message text.[B]An Error has message but no name; its kind is found only with instanceof. There are only two kinds, TypeError and SyntaxError, and RangeError and ReferenceError are other names for those two.[C]An Error holds only a number code and no text at all. TypeError, RangeError and SyntaxError are separate classes that do not extend Error, so e instanceof Error is false for each of them and each of them needs its own separate catch block.[D]An Error has name, the kind of error such as "Error", and message, the text passed to new Error(…); Node and browsers add a stack string. TypeError, RangeError, ReferenceError and SyntaxError extend Error with their own name.Subscribe to take the courseThe course is free. Sign in with Telegram and subscribe to the channel to open every lesson.Continue with TelegramSign in another way← BackError typesNext →Custom error classes