Adding one to capacity each time copies far more often than doubling.
Acceptance criteria
- 1.#out should show capacity sixteen.
Adding one to capacity each time copies far more often than doubling.
let capacity = 1; while (capacity < 10) capacity += 1; document.querySelector('#out').textContent = capacity === 16 ? "capacity sixteen" : "capacity " + capacity;
Output ready when you are
Press Run to render your code, or Submit to validate your solution.