Source Code:
(back to article)
Submit
Result:
Report an issue
<div id="example"></div> <script> const element = document.getElementById('example'); element.textContent = 'Updated text content'; </script>