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

try/catch/finally Block

Click the elements in order of the try/catch/finally block:

Items to click

  • setError(err.message);
  • } catch (err) {
  • const data = await fetch(url);
  • try {
  • setLoading(false); }
  • } finally {

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