how to append in javascript

JavaScript
 var node = document.createElement("LI");                 // Create a <li> node

 var textnode = document.createTextNode("Water");         // Create a text node

 node.appendChild(textnode);                              // Append the text to <li>

 document.getElementById("myList").appendChild(node);     // Append <li> to <ul> with id="myList" var colors= ["red","blue"];
	colors.push("yellow"); var fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.push("Kiwi");$("button").click(function(){
  $("p").append("<b>Appended text</b>");
});var list=[1, 2, 3, 4, 5];
list.push(6);
// .push allows you to add a value to the end of a list tRevisZoneImport.Zone_ZCMC0001 With {
Source

Also in JavaScript: