Finished Simple page of color flipper
This commit is contained in:
parent
6bafaa3d5f
commit
a06d87ebaf
@ -10,5 +10,5 @@ btn.addEventListener('click', function () {
|
|||||||
})
|
})
|
||||||
|
|
||||||
function getRandomNumber() {
|
function getRandomNumber() {
|
||||||
return Math.floor(Math.random()*4);
|
return Math.floor(Math.random()*colors.length);
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user