GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Modul 8 von 10 · Medien

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)'

Anleitung

Um im Kurs weiterzukommen, sende einen Versuch dieses Quiz ab. Du kannst ihn nach der letzten Frage absenden.

Zum gewählten Modul

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck