GoConqr has a new look! Let us know what you think.

Module 8 of 10 · Media

Create a random color

Kostas Diakogiannis

Create a random color

M-4 Create a random color

Create a random color by creating three different random number integers from 0 to 255. Store them into an array. 

Then try to paint the background body of your document with the combination of colors you created by putting the randomly generated numbers into an rgb() function as arguments.

 

hint:

Check the document.body.style.background = 'rgb(three numbers here)'

Instructions

You must submit an attempt for this quiz to progress. You can submit it after the last question.

Go to the chosen module

Feedback

What is it about?

What do you think of the new look?

How do you like it?