Lesson 25 of 35 · +120 xp

Promise

Then chain.

Explained simply

Your task

Write: fetch("/api").then(r => r.json());

promise.js
▶ Output (javascript)
Click 'Run code' to execute your code in a real sandbox.
← Back