Click in order · JavaScript and React course · Module 11: Data Fetching and APIs

Checking AbortError in catch

Click the elements in order to check if the error is an AbortError (normal cancellation):

Items to click

  • } catch (err) {
  • }
  • if (err.name
  • { setError(err.message); }
  • !== 'AbortError')

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