From eef7eb3df547ef6beb7cea989f768cc5a44867bd Mon Sep 17 00:00:00 2001 From: nodemixaholic Date: Sun, 31 Mar 2024 19:46:53 +0000 Subject: [PATCH] Update 'frontend.js' --- frontend.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend.js b/frontend.js index b4945c0..0c8189d 100644 --- a/frontend.js +++ b/frontend.js @@ -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) {