All challenges
Multiple ChoiceHard 30s

Error.cause

Choose the best answer for: error chaining
Options
  1. 1new Error('msg', {cause: originalError}) chains errors
  2. 2The cause option is a string property replaced by the message
  3. 3The cause option duplicates the original error as a nested one
  4. 4The cause option is deprecated and ignored by modern JavaScript

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle