Closed politologu closed 6 years ago
<h1 id="h1-heading">Hello Codetogo!</h1>
<h1
Codetogo!</h1>
const headingElement = document.getElementById("h1-heading");
Thanks @politologu! There's already one for it here: How to find element by id in JavaScript
<h1
id="h1-heading">HelloCodetogo!</h1>
const headingElement = document.getElementById("h1-heading");