Skip to content

Commit 85d4282

Browse files
committed
update app.js
1 parent 00442e1 commit 85d4282

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎1-color-flipper/setup/app.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ btn.addEventListener("click", function () {
66
// get random Number between 0 - 3 colors[0]//
77
const randomNumber = 2;
88
document.body.style.backgroundColor = colors[randomNumber];
9-
color.innerHTML = colors[randomNumber];
9+
color.textContent = colors[randomNumber];
1010
});
1111

12+
function

0 commit comments

Comments
 (0)