A callback with braces must return a value.
Acceptance criteria
- 1.#out should show 2,4,6.
A callback with braces must return a value.
const numbers = [1, 2, 3]; const doubled = numbers.map(n => { n * 2; }); document.querySelector('#out').textContent = doubled[0] === undefined ? "all empty" : doubled.join(",");
Output ready when you are
Press Run to render your code, or Submit to validate your solution.