Identifiers are defined as /[a-zA-Z][0-9a-zA-Z_]*/ Which means, _my_var, is not valid, but my_var is. Furthermore, a lot of languages, including JS, are ok with $ as well. Any reason for constraining this?
Identifiers are defined as /[a-zA-Z][0-9a-zA-Z_]*/
Which means, _my_var, is not valid, but my_var is.
Furthermore, a lot of languages, including JS, are ok with $ as well.
Any reason for constraining this?