0

Is this correct??

window.onload = function() { var p = document.createElement("p"); var node = document.createTextNode("aur bc"); p.appendChild(node); document.getElementById("demo").appendchild("p"); }

10th May 2020, 2:46 PM
Bhavesh Lalwani
Bhavesh Lalwani - avatar
1 Odpowiedź
0
Two small errors The last line should be appendChild(p); not appendchild("p");
10th May 2020, 2:50 PM
Ore
Ore - avatar