A variable declared in the try block cannot be read outside it.
Acceptance criteria
- 1.#out should show 42.
A variable declared in the try block cannot be read outside it.
let value = 0; try { const inner = 42; } catch (error) { } document.querySelector('#out').textContent = String(value);
Output ready when you are
Press Run to render your code, or Submit to validate your solution.