using random() function in javascript

//printing no. between 1-10 randomly

var random = math.floor(math.random()*10) +1);

console.log(random);



1) set hexcolor code with respect to the number(between 1-12).

2)  generate no. between 1-12.

3) use if else condition on numbers and render the colors with respect to the number generated by random function.

Comments

Popular posts from this blog

Generative AI Model for text summarization

maintext/ react

Resume description for AI/ ML Developer