Problem

What gets logged to the console?

const res = ["πŸ‘¨", "‍", "πŸ‘©", "‍", "πŸ‘§", "‍", "πŸ‘¦"].join('')

console.log(res)
Solution

What gets logged to the console?

const res = ["πŸ‘¨", "‍", "πŸ‘©", "‍", "πŸ‘§", "‍", "πŸ‘¦"].join('')

console.log(res) // πŸ‘¨β€πŸ‘©β€πŸ‘§β€πŸ‘¦

It’s the β€πŸ‘¨β€πŸ‘©β€πŸ‘§β€πŸ‘¦β€ emoji.

This works because the Unicode standard supports mapping individual emojis with zero-width joiners to create new emojis.Β In our case, taking individual emojis and joining them to get a family emoji. Wow, programming.