Fun fact: some browsers use different Unicode versions for different JavaScript features. Safari supports Unicode v11 for RegExp property escapes, but supports the more recent Unicode v12 for identifiers. 
-
-
Show this thread
-
Unicode 13 (released just last week) includes 5,645 new identifier symbols. All major browsers are currently still on Unicode 12, though.
Show this thread -
A snippet of JavaScript code can go from being syntactically invalid to being valid overnight, when a new version of the Unicode Standard gets released.
Show this thread
End of conversation
New conversation -
-
-
Chrome actually supports Unicode 12.1.0 because /\p{So}/u.test("㋿") === true.
-
Good point! I was limiting the app to things that affect the grammar (as in, valid/invalid syntax) but we could add such tests for runtime behavior as well. WDYT?
- 2 more replies
New conversation -
-
-
This also appears to be valid
(the code can be copy-pastes from here: https://bit.ly/2tMPEfR )pic.twitter.com/wFyiZy1IMK
-
Nice one! My old blog posts might have some other “interesting” examples:
https://mathiasbynens.be/notes/javascript-identifiers-es6 …
https://mathiasbynens.be/notes/javascript-identifiers … - 1 more reply
New conversation -
-
-
Who in their right mind actually makes variables names unicode? That's just absurd and obnoxious IMO.
-
What makes you say that? const π = Math.PI; // makes sense to me Going further, not everyone speaks English as their first language — they might write JavaScript with comments in say, German or Hindi. It seems like a win that variable names can reflect the author’s language.
- 1 more reply
New conversation -
-
-
ღღღ. It's funny ღ is so popular. ღ is Georgian letter and sounds like GH pronounced together.
-
Yep. Most gross-sounding Georgian letter is international unicode love symbol
ღღღ
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.
Here’s some examples + a Unicode version support table across environments: