¡GoConqr estrena diseño! Cuéntanos qué te parece.

Módulo 8 de 10 · Multimedia

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

Instrucciones

Para avanzar en el curso, envía un intento de este test. Puedes enviarlo después de la última pregunta.

Ir al módulo elegido

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?