Update app.py
Browse files
app.py
CHANGED
@@ -48,7 +48,7 @@ document.getElementById('demo').appendChild = game
|
|
48 |
function addNewElement() {
|
49 |
// creating new element
|
50 |
const newElement = document.createElement('div')
|
51 |
-
|
52 |
// adding a new element at the end of the body
|
53 |
document.body.appendChild(newElement)
|
54 |
}
|
|
|
48 |
function addNewElement() {
|
49 |
// creating new element
|
50 |
const newElement = document.createElement('div')
|
51 |
+
newElement.innerHTML = game
|
52 |
// adding a new element at the end of the body
|
53 |
document.body.appendChild(newElement)
|
54 |
}
|