We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ef2c65 commit 6fcbfc7Copy full SHA for 6fcbfc7
Sprint-3/alarmclock/alarmclock.js
@@ -35,10 +35,10 @@ function setAlarm() {
35
//add color changing background when alarm reaches 0 until stopped.
36
//function from color changing assignment 10 year ago!
37
function makeRandomColor() {
38
- var colorOptions = "0123456789ABCDEF";
39
- var newColor = "#";
+ let colorOptions = "0123456789ABCDEF";
+ let newColor = "#";
40
//repeat 6 times to generate 6 random hex digits from the 16 characters in colorOptions
41
- for (var i = 0; i < 6; i++) {
+ for (let i = 0; i < 6; i++) {
42
//picks random numbers from colorOptions and appends it to the # to make a new color.
43
newColor += colorOptions[Math.floor(Math.random() * 16)];
44
}
0 commit comments