Without a return the next step receives undefined.
Acceptance criteria
- 1.#out should show 10.
Without a return the next step receives undefined.
Promise.resolve(2) .then(function (n) { const doubled = n * 5; }) .then(function (n) { document.querySelector('#out').textContent = n === undefined ? "lost the value" : String(n); });
Output ready when you are
Press Run to render your code, or Submit to validate your solution.