TAG
CSS
JavaScript
Result
Run
License
<div class="output-wrapper"> <output></output> <output></output> <output></output> </div>
.output-wrapper { display: flex; flex-direction: column; } .output-wrapper > output > span { color: red; }
window.addEventListener("load", () => { const aElOutput = document.querySelectorAll(".output-wrapper > output"); try { aElOutput[0].innerHTML = `${1 + num}`; } catch (e) { aElOutput[1].innerHTML = `
${e.name}: ${e.message}
`; } aElOutput[2].innerHTML = 'third output.'; });
Console
expand_less
License
License
by DevDic
Close