Skip to content

Commit 8e67895

Browse files
committed
Chapter 6 - Q5
1 parent 1aa4a0c commit 8e67895

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Chapter 6/Practice Set/29_PracticeSet.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,15 @@ while(runAgain){
2626
*/
2727

2828
// Q4
29+
/*
2930
let number = prompt("Enter your number:")
3031
number = Number.parseInt(number)
3132
3233
if(number>4){
3334
location.href = "https://google.com"
34-
}
35+
}
36+
*/
37+
38+
//Q5
39+
let color = prompt("Enter the page background color:")
40+
document.body.style.background = color

0 commit comments

Comments
 (0)