The comparison points the wrong way, so the loop body is skipped.
Acceptance criteria
- 1.#out should show 1,2,3,4.
The comparison points the wrong way, so the loop body is skipped.
const parts = []; let i = 1; while (i >= 4) { parts.push(i); i++; } document.querySelector('#out').textContent = parts.join(",") || "empty";
Output ready when you are
Press Run to render your code, or Submit to validate your solution.