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

From Ruby to JavaScript

Changing the code font family and size in Visual Studio Code

Coding Screen

30 Day Typescript Type Challenge — Challenge 14

Eslint with Node JS in Simple Words

mapDispatchToProps in React-Redux

The only one rule that a software engineer that could follow to write the clean code.

3 Ways to Analyze React Performance with Reactime

Module alias for Electron 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

CS371p Spring 2022: Sarunas Budreckis — Entry #7

Difference between window.location.replace(...) and window.location.href

Headings for the Visually Inclined

A hand-drawn website layout for The Hubbosphere. There is a sidebar with Recent Posts, and a main section for Top Stories.

How to Send Timed Notifications — Chrome Extension