Update 'frontend.js'

This commit is contained in:
nodemixaholic 2024-03-31 21:46:31 +00:00
parent 4adc229b1e
commit c71fc453aa

View file

@ -109,6 +109,10 @@ function createParagraph(elementID, text) {
return elem return elem
} }
function initBody() {
createElement("body", "body")
}
function createButton(elementID, text, attributes = {}) { function createButton(elementID, text, attributes = {}) {
let elem = createElement("button", elementID); let elem = createElement("button", elementID);
elem.innerText = `${text}` elem.innerText = `${text}`