Color Changer
Problem Statement
Create a button and when the user clicks on the button, the background color of the page (body) should change
Acceptance Criteria
- When the user clicks on the button, the background color of the page should change.
- The background color should be random.
- The button should:
- be in the center of the page.
- have a text
Change Color. - have a font size of
20px. - have a font color of
white. - have a background color of
blue.
Hints
- Use the
Math.random()method to generate a random number.