Update 'frontend.js'

This commit is contained in:
nodemixaholic 2024-03-31 19:46:53 +00:00
parent 52c8984926
commit eef7eb3df5

View file

@ -25,7 +25,9 @@ function createParagraph(elementID, text) {
} }
function createButton(elementID, text) { function createButton(elementID, text) {
return createElement("button", elementID, { innerText: text }); let elem = createElement("button", elementID);
elem.innerText = `${text}`
return elem;
} }
function createImage(elementID, src) { function createImage(elementID, src) {