+ 1
People help please-how to make the function so that when you click on a red square, a random color would appear
2 Respostas
+ 10
Colors are 3 bytes
var num = Math.floor(Math.random() * (0xffffff + 1));
var hexColor = "#" + num.toString(16)
- 1
no works