What gets logged to the console?
const res = ["π¨", "β", "π©", "β", "π§", "β", "π¦"].join('') console.log(res)
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.