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

118
Vistas
Why does true == "true" returns false?

Assume we have a condition, where a String "true" is compared to Boolean true. It returns false, though true == '1' returns true. If you do true == !!"true", this will return true, so it should mean, that since the beginning "true" was true. Is there any specific logic, that I am missing, or it just works with string representation of 0 and 1?

console.log(true == 'true')

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Because "true" is converted to NaN, while true is converted to 1. So they differ.

-- Source

about 4 years ago · Juan Pablo Isaza Denunciar
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