Valid JavaScript variable names in ES5

Did you know var π = Math.PI; is syntactically valid JavaScript? I thought this was pretty cool, so I decided to look into which Unicode glyphs are allowed in JavaScript variable names, or identifiers as the ECMAScript specification calls them.


This content originally appeared on Mathias Bynens and was authored by Mathias

Did you know var π = Math.PI; is syntactically valid JavaScript? I thought this was pretty cool, so I decided to look into which Unicode glyphs are allowed in JavaScript variable names, or identifiers as the ECMAScript specification calls them.


This content originally appeared on Mathias Bynens and was authored by Mathias


Print Share Comment Cite Upload Translate Updates
APA

Mathias | Sciencx (2012-02-17T15:19:15+00:00) Valid JavaScript variable names in ES5. Retrieved from https://www.scien.cx/2012/02/17/valid-javascript-variable-names-in-es5/

MLA
" » Valid JavaScript variable names in ES5." Mathias | Sciencx - Friday February 17, 2012, https://www.scien.cx/2012/02/17/valid-javascript-variable-names-in-es5/
HARVARD
Mathias | Sciencx Friday February 17, 2012 » Valid JavaScript variable names in ES5., viewed ,<https://www.scien.cx/2012/02/17/valid-javascript-variable-names-in-es5/>
VANCOUVER
Mathias | Sciencx - » Valid JavaScript variable names in ES5. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2012/02/17/valid-javascript-variable-names-in-es5/
CHICAGO
" » Valid JavaScript variable names in ES5." Mathias | Sciencx - Accessed . https://www.scien.cx/2012/02/17/valid-javascript-variable-names-in-es5/
IEEE
" » Valid JavaScript variable names in ES5." Mathias | Sciencx [Online]. Available: https://www.scien.cx/2012/02/17/valid-javascript-variable-names-in-es5/. [Accessed: ]
rf:citation
» Valid JavaScript variable names in ES5 | Mathias | Sciencx | https://www.scien.cx/2012/02/17/valid-javascript-variable-names-in-es5/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.