Finished Simple page of color flipper

This commit is contained in:
jason.zhu 2021-05-17 16:19:39 +10:00
parent 6bafaa3d5f
commit a06d87ebaf

View File

@ -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);
} }