Question 11
Consider the following JavaScript code.
File name: script.js
window.onload = function() { const heading = document.createElement("h1"); const heading_text = document.createTextNode("Big Head!"); const heading1 = document.createElement("h3"); const heading_text1 = document.createTextNode("small Head!"); heading.appendChild(heading_text); heading1.appendChild(heading_text1); document.body.appendChild(heading); document.body.appendChild(heading1);}File name: index.html
<!DOCTYPE html><html> <body> <script src="script.js"></script> </body></html>How will the browser render the above code?