finally does the job once instead of twice.
Acceptance criteria
- 1.#out should show 2 steps.
finally does the job once instead of twice.
const steps = []; try { steps.push("worked"); steps.push("cleaned up"); steps.push("cleaned up"); } catch (error) { steps.push("failed"); } document.querySelector('#out').textContent = steps.length + " steps";
Output ready when you are
Press Run to render your code, or Submit to validate your solution.