next() returns an object; the value is one property of it.
Acceptance criteria
- 1.#out should show 1.
next() returns an object; the value is one property of it.
const iterator = [1, 2, 3][Symbol.iterator](); const result = iterator.next(); document.querySelector('#out').textContent = String(result);
Output ready when you are
Press Run to render your code, or Submit to validate your solution.