Skip to content

quintin-dev/JavaScript-Mini_Projects-Random_Background_Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Mini Project: Random Background Color Changer

Description

This JavaScript-based project changes the background color of the webpage to a random dark color from a predefined list when a button is clicked. It demonstrates fundamental programming concepts, including DOM manipulation, event handling, and array operations. The current background color’s hex code is displayed dynamically on the page.

#freeCodeCamp JavaScript Algorithms and Data Structures Projects

live Demo

Random Background Generator

Features

  • Dynamic Background Change
    • Updates the webpage background color randomly on button click.
  • Hex Code Display
    • Displays the current background color’s hex code dynamically.
  • Predefined Color List
    • Utilizes a predefined array of dark color hex codes for random selection.

Disclaimer

This project is part of the JavaScript Algorithms and Data Structures Projects on freeCodeCamp. The original project tutorial can be found here.

Don't forget to star ⭐ this repo if you liked or found it useful!