Last active
October 15, 2020 19:53
-
-
Save KyleMit/0d521359dfaaf8b9a16e6fe00568c45b to your computer and use it in GitHub Desktop.
Twitter - JavaScript String Arrays
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let msg = "🎃 BOO" | |
console.log(msg[0]) // "�" | |
console.log(msg.charAt(0)) // "�" | |
console.log([...msg][0]) // "🎃" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment