User:Gauransh Dingwani/common.js

console.log("hello world"); // document.getElementById("content").style.backgroundColor = "pink"; // document.getElementById("firstHeading").innerHTML = "pink"; var para = document.createElement("p"); var node = document.createTextNode("This is new."); para.appendChild(node); var element = document.getElementById("bodyContent"); element.appendChild(para);