mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-06 09:28:26 +08:00
Conversions algorithms : remove live code & console.log.
This commit is contained in:
@ -12,5 +12,10 @@ function RGBToHex (r, g, b) {
|
||||
return `#${toHex(r)}${toHex(g)}${toHex(b)}`
|
||||
}
|
||||
|
||||
console.log(RGBToHex(255, 255, 255) === '#ffffff')
|
||||
console.log(RGBToHex(255, 99, 71) === '#ff6347')
|
||||
export { RGBToHex }
|
||||
|
||||
// > RGBToHex(255, 255, 255)
|
||||
// '#ffffff'
|
||||
|
||||
// > RGBToHex(255, 99, 71)
|
||||
// '#ff6347'
|
||||
|
Reference in New Issue
Block a user