Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

275
Vistas
problem to convert RGB to HEX, problem only with the blue color

I'm trying to convert RGB to HEX and when i put numbers at the function the output is correct, but when i call the function in my code it doesn't work (just the **blue **color doesn't work).

my function:

const rgbToHex = (r, g, b) => { console.log( "#" + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1) );

return "#" + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1); };

i tried the change the function several time but it still doesn't work the all code https://codepen.io/doron-david/pen/WNdgEOd

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda