Update 'frontend.js'

This commit is contained in:
nodemixaholic 2024-03-31 21:53:37 +00:00
parent 21e14f2c0c
commit dacc6e4011

View file

@ -109,7 +109,7 @@ function createParagraph(elementID, text) {
return elem return elem
} }
function initBody(bodyID) { function initBody(bodyID = "body") {
// Create a new body element with the desired id // Create a new body element with the desired id
const newBody = document.createElement("body"); const newBody = document.createElement("body");
newBody.id = bodyID; newBody.id = bodyID;