Write a function named rgbToHex that receives one parameter
rgbColor. The string has the following format: rgb(r, g, b), where r, g and b are numbers between 0-255.The function should return the color in hexadecimal form.
rgbColor
=Unlock all functions
The first 10 functions are free. Get lifetime access to all 100 with a one-time payment — no subscription.
Upgrade to Pro