Without the three dots only the first argument is received.
Acceptance criteria
- 1.#out should show 10.
Without the three dots only the first argument is received.
function addAll(numbers) { let total = 0; if (typeof numbers === "number") total = numbers; return total; } document.querySelector('#out').textContent = addAll(1, 2, 3, 4);
Output ready when you are
Press Run to render your code, or Submit to validate your solution.