HTML
<h1 id="title"></h1>
<p class="content"></p>
<p class="descrition"></p>
JS
let heading = document.getElementById("title")
let paragraphs = document.getElementsByClassName("content")
let allparagraphs = document.getElementsByClassName("descrition")
console.log(heading);
heading.innerHTML = "this is the title"
console.log(paragraphs);
paragraphs[0].innerHTML = "Mohamed"
console.log(allparagraphs);
allparagraphs[1].innerHTML = "This is the second Paragraph"