Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

133
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
ยฉ 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!