Only the first line belongs to the if without braces.
Acceptance criteria
- 1.#out should show guarded.
Only the first line belongs to the if without braces.
const on = false; document.querySelector('#out').textContent = "guarded"; if (on) document.querySelector('#out').textContent = "leaked"; document.querySelector('#out').textContent = "leaked";
Output ready when you are
Press Run to render your code, or Submit to validate your solution.