getElementById CODE
getElementById
method is used to select the element with
id="demo"
and change its content
let elem = document.getElementById("demo");
elem.innerHTML = "Hello World!";
by Valeri Tandilashvili
4 years ago
JavaScript
DOM
2
Pro tip: use ```triple backticks around text``` to write in code fences