randomly genaret color in js
var randomColor = '#'+ Math.floor(Math.random() * 19777215).toString(16);
randomly genaret color in js
var randomColor = '#'+ Math.floor(Math.random() * 19777215).toString(16);
generate random color array javascript
var rgb = [];
for(var i = 0; i < 3; i++)
rgb.push(Math.floor(Math.random() * 255));
myDiv.style.backgroundColor = 'rgb('+ rgb.join(',') +')';
generate random color array javascript
var colors = ['red', 'green', 'blue', 'orange', 'yellow'];
myDiv.style.backgroundColor = colors[Math.floor(Math.random() * colors.length)];
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us