Random Color Picker

A random color picker that you can get a random hexcode. The background color and the text automatically are changed.


Date : August 2020

Languages used : HTML, CSS, JavaScript

Methods used :

  • Array
  • 'for' loop
  • Math.floor()
  • Math.random()

Steps :

  • Select the items (value and button)
  • Create an array for hex (0-9 and A-F)
  • Set a click event for 'Click Me' button to get a random hexcode for background color and text field
  • Set a function to get random number