Click in order · JavaScript and TypeScript course · Module 5: Advanced JavaScript

Custom Error Class Syntax

Arrange the elements of a custom error class definition in the correct order:

Items to click

  • this.name = 'DinoError'; } }
  • extends Error {
  • constructor(msg) { super(msg);
  • class DinoError

You can check the correct answer by solving this task in the CodeWorlds game.