Convert RGB to HEX color in JavaScript
Implement a function in JavaScript that converts the RGB number to HEXA color codes.
Example
Input:
255, 51, 255
Output:
"#ff33ff"
RGB format is a combination of three colors, red, green, and blue in the range of 0 – 255. A hex color code is the hex...
sumitmupadhyay.hashnode.dev2 min read