Update 'frontend.js'
This commit is contained in:
parent
52c8984926
commit
eef7eb3df5
1 changed files with 3 additions and 1 deletions
|
@ -25,7 +25,9 @@ function createParagraph(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) {
|
||||
|
|
Loading…
Reference in a new issue