Generate random hex colors in JS with a library

How to generate random hex colors in Javascript? I’ve created a very simple library to solve this problem.

Why? Because is simple, reusability of code. Code reusability gives you the ability to reuse code multiple times so you can develop applications faster and with more consistency. I needed this functionality two times for 2 different projects in a single month and I decided to…




Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Sorting data alphabetically (localeCompare) && (sort)

You should be building component libraries.

Props in React Components

How to Convert an Outlook EML File to JPG in JavaScript

Boolean Values JavaScript

Objects and their internal representation in Javascript

A Mini Formula 1 App

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Bogdan Alexandru Militaru

Bogdan Alexandru Militaru

More from Medium

How to use Redux-Toolkit. A Step-by-Step Guide.

What’s Your Route?

KWOC | Kharagpur Winter Of Code Project Report