Note: This document is a work in progress. You can help improve it.

"Challenge: Random Color Changer"


Create a website that allows the user to click a button and change the background color to a random color.

Display the new color's rgb triplet (e.g. 13,124,200) on the screen in an h1 tag.


  • Display the new color's hex triplet (e.g. #76bcbb) instead of the rgb on the screen in an h1 tag.

Make it so that, instead of the <body>'s color, it changes only a section on the page to a random color.


Make it so that when clicked, it generates 5 random colors and displays all five (e.g.