JavaScript DOM
Hey Guys,
Today we are going to learn about basic DOM Manipulation using JavaScript.
.innerText
The inner text is used to assign or change the value of the html element.
<h1 id="num">0</h1>
<button id="increment-btn" onclick=inc()>INCREMENT</button>
...
arvikh.hashnode.dev1 min read