Click in order · JavaScript and TypeScript course · Module 4: Asynchronous JavaScript

.catch() Syntax

Arrange the elements of error handling in a Promise:

Items to click

  • promise
  • .catch(
  • console.error(error))
  • error =>

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