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

136
Vistas
Why are two identical emojis not equal?

I have to validate the user's emoji input and perform a comparison to see what they entered. However, I've started noticing that several emojis look identical, but are not equal. Take a look at the example below, moonA has a length of 2, but moonB is 3:

var moonA = "🌕";
var moonB = "🌕️";

console.log(moonA == moonB);
console.log("Moon A:", moonA.length);
console.log("Moon B:", moonB.length);

What could be causing this discrepancy? I've looked at them up close in both Windows and iOS, and they look exactly the same on both systems. Why are there two versions of the same emoji?

about 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

What Unicode character is this? identifies them as:

moonA = "🌕"
    U+1F315 : FULL MOON SYMBOL

moonB = "🌕️"
    U+1F315 : FULL MOON SYMBOL
    U+FE0F : VARIATION SELECTOR-16 [VS16] {emoji variation selector}
about 4 years ago · Santiago Trujillo 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