The background color of the body will be set to an random color by clicking on 'Generate' button.
Live demo: https://jahnav-sannapureddy.github.io/hex-color-generator/
Some of the topics explored in this project:
- array
- array.length
- addEventListener()
- getElementById()
- document.body.style.backgroundColor
- Math.random()
This project is made from the source of freeCodeCamp.org
src: https://www.freecodecamp.org/news/javascript-projects-for-beginners/#how-to-create-a-color-flipper