Driver Code
let R = 0 , G = 0 , B = 0 ; document . write ( convertRGBtoHex ( R , G , B ) + " " ) ; R = 255 ; G = 255 ; B = 255 ; document . write ( convertRGBtoHex ( R , G , B ) + " " ) ; R = 25 ; G = 56 ; B = 123 ; document . write ( convertRGBtoHex ( R , G , B ) + " " ) ; R = 2 ; G = 3 ; B = 4 ; document . write ( convertRGBtoHex ( R , G , B ) + " " ) ; R = 255 ; G = 255 ; B = 256 ; document . write ( convertRGBtoHex ( R , G , B ) + " " ) ;