1document.getElementById("p").textContent += " This is the text from javascript.";
2
3<p id ="p">This is the text from HTML.</p>
1let arr = ["g", "o", "o", "g", "L", "e";
2let ul = document.getElementById("id_ul");
3let i =0;
4arr.map(arr=>{
5 var li = document.createElement("li");
6 ul.appendChild(li);
7 li.innerHTML = arr[i];
8})
9