Escape sequence to add emojis to javascript strings
In JS strings you can use the escape sequence '\u' to add unicode characters.
Examples:
For the snake emoji.
- Using the code points directly
> console.log('\u{1f40d}')
๐
- Using UTF-16
> console.log('\ud83d\udc0d')
๐