From 6bc0c0c3fb5057ce774d571b4d7234ef4b7c7bd2 Mon Sep 17 00:00:00 2001 From: Pranjalrajput-coder <85071043+Pranjalrajput-coder@users.noreply.github.com> Date: Sat, 3 Jul 2021 16:17:00 +0530 Subject: [PATCH] Update script.js --- js/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/script.js b/js/script.js index 803c165..9c57ab4 100644 --- a/js/script.js +++ b/js/script.js @@ -3,7 +3,7 @@ const button = document.querySelector('button') const body = document.querySelector('body') const colors = ['red', 'green', 'blue', 'yellow', 'pink', 'purple'] -body.style.backgroundColor = 'violet' +body.style.backgroundColor = 'red' button.addEventListener('click', changeBackground) function changeBackground(){