Skip to main content
for some reason, spaces after ಠ don't work quite right
Source Link
cHao
  • 87k
  • 20
  • 147
  • 178

ಠ_ಠ and and 草泥马 only contain "letters" used in actual alphabets; that is, ಠ is is a symbol from the Kannada alphabet, and 草泥马 consists of Chinese characters.

◎ and ☺, however, are purely symbols; they are not associated with any alphabet.

The ECMAScript standard, chapter 7.6 (which all the browsers except Internet Explorer are following), states that an identifier must start with one of the following.

  • a Unicode letter
  • $ or _
  • \ followed by a unicode escape sequence.

The following characters of an identifier must be one of the following.

  • any of the characters permitted at the start
  • a Unicode combining mark
  • a Unicode digit
  • a Unicode connector punctuation
  • a zero-width-non-joiner
  • a zero-width joiner

IE goes beyond the standard and is permissive enough to allow some symbols, such as ☺.

There’s a tool that will tell you if any string that you enter is a valid JavaScript variable name according to ECMAScript 5.1 and Unicode 6.1.

ಠ_ಠ and 草泥马 only contain "letters" used in actual alphabets; that is, ಠ is a symbol from the Kannada alphabet, and 草泥马 consists of Chinese characters.

◎ and ☺, however, are purely symbols; they are not associated with any alphabet.

The ECMAScript standard, chapter 7.6 (which all the browsers except Internet Explorer are following), states that an identifier must start with one of the following.

  • a Unicode letter
  • $ or _
  • \ followed by a unicode escape sequence.

The following characters of an identifier must be one of the following.

  • any of the characters permitted at the start
  • a Unicode combining mark
  • a Unicode digit
  • a Unicode connector punctuation
  • a zero-width-non-joiner
  • a zero-width joiner

IE goes beyond the standard and is permissive enough to allow some symbols, such as ☺.

There’s a tool that will tell you if any string that you enter is a valid JavaScript variable name according to ECMAScript 5.1 and Unicode 6.1.

ಠ_ಠ and 草泥马 only contain "letters" used in actual alphabets; that is, ಠ is a symbol from the Kannada alphabet, and 草泥马 consists of Chinese characters.

◎ and ☺, however, are purely symbols; they are not associated with any alphabet.

The ECMAScript standard, chapter 7.6 (which all the browsers except Internet Explorer are following), states that an identifier must start with one of the following.

  • a Unicode letter
  • $ or _
  • \ followed by a unicode escape sequence.

The following characters of an identifier must be one of the following.

  • any of the characters permitted at the start
  • a Unicode combining mark
  • a Unicode digit
  • a Unicode connector punctuation
  • a zero-width-non-joiner
  • a zero-width joiner

IE goes beyond the standard and is permissive enough to allow some symbols, such as ☺.

There’s a tool that will tell you if any string that you enter is a valid JavaScript variable name according to ECMAScript 5.1 and Unicode 6.1.

Corrected a couple of minor typos. Expanded IE to Internet Explorer.
Source Link

ಠ_ಠ and 草泥马 only contain "letters" used in actual alphabets; that is, ಠ is a symbol from the Kannada alphabet, and 草泥马 consists of Chinese characters.

◎ and ☺, however, are purely symbols; they are not associated with any alphabet.

The ECMAScript standard, chapter 7.6 (which Iall the browsers except IEInternet Explorer are following), states that an identifier must start with onone of the following.

  • a Unicode letter
  • $ or _
  • \ followed by a unicode escape sequence.

The following characters of an identifier must be one of the following.

  • any of the characters permitted at the start
  • a Unicode combining mark
  • a Unicode digit
  • a Unicode connector punctuation
  • a zero-width-non-joiner
  • a zero-width joiner

IE goes beyond the standard and is permissive enough to allow some symbols, such as ☺.

There’s a tool that will tell you if any string that you enter is a valid JavaScript variable name according to ECMAScript 5.1 and Unicode 6.1.

ಠ_ಠ and 草泥马 only contain "letters" used in actual alphabets; that is, ಠ is a symbol from the Kannada alphabet, and 草泥马 consists of Chinese characters.

◎ and ☺, however, are purely symbols; they are not associated with any alphabet.

The ECMAScript standard, chapter 7.6 (which I the browsers except IE are following), states that an identifier must start with on of the following.

  • a Unicode letter
  • $ or _
  • \ followed by a unicode escape sequence.

The following characters of an identifier must be one of the following.

  • any of the characters permitted at the start
  • a Unicode combining mark
  • a Unicode digit
  • a Unicode connector punctuation
  • a zero-width-non-joiner
  • a zero-width joiner

IE goes beyond the standard and is permissive enough to allow some symbols, such as ☺.

There’s a tool that will tell you if any string that you enter is a valid JavaScript variable name according to ECMAScript 5.1 and Unicode 6.1.

ಠ_ಠ and 草泥马 only contain "letters" used in actual alphabets; that is, ಠ is a symbol from the Kannada alphabet, and 草泥马 consists of Chinese characters.

◎ and ☺, however, are purely symbols; they are not associated with any alphabet.

The ECMAScript standard, chapter 7.6 (which all the browsers except Internet Explorer are following), states that an identifier must start with one of the following.

  • a Unicode letter
  • $ or _
  • \ followed by a unicode escape sequence.

The following characters of an identifier must be one of the following.

  • any of the characters permitted at the start
  • a Unicode combining mark
  • a Unicode digit
  • a Unicode connector punctuation
  • a zero-width-non-joiner
  • a zero-width joiner

IE goes beyond the standard and is permissive enough to allow some symbols, such as ☺.

There’s a tool that will tell you if any string that you enter is a valid JavaScript variable name according to ECMAScript 5.1 and Unicode 6.1.

clarified any/all, removed superfluous image
Source Link
Peter Olson
  • 143.5k
  • 49
  • 209
  • 249

ಠ_ಠ and 草泥马 only contain "letters" used in actual alphabets; that is, ಠ is a symbol from the Kannada alphabet, and 草泥马 consists of Chinese characters.

◎ and ☺, however, are purely symbols; they are not associated with any alphabet.

The ECMAScript standard, chapter 7.6 (which I the browsers except IE are following), states that an identifier must start with on of the following.

  • a Unicode letter
  • $ or _
  • \ followed by a unicode escape sequence.

The following characters of an identifier must be one of the following.

  • allany of the characters permitted at the start
  • a Unicode combining mark
  • a Unicode digit
  • a Unicode connector punctuation
  • a zero-width-non-joiner
  • a zero-width joiner.

IE goes beyond the standard and is permissive enough to allow some symbols, such as ☺.

There’s also a tool that will tell you if any string that you enter is a valid JavaScript variable name according to ECMAScript 5.1 and Unicode 6.1:

JavaScript variable name validator http://i.imgur.com/GNv5t.png.

ಠ_ಠ and 草泥马 only contain "letters" used in actual alphabets; that is, ಠ is a symbol from the Kannada alphabet, and 草泥马 consists of Chinese characters.

◎ and ☺, however, are purely symbols; they are not associated with any alphabet.

The ECMAScript standard, chapter 7.6 (which I the browsers except IE are following), states that an identifier must start with on of the following.

  • a Unicode letter
  • $ or _
  • \ followed by a unicode escape sequence.

The following characters of an identifier must be one of the following.

  • all the characters permitted at the start
  • a Unicode combining mark
  • a Unicode digit
  • a Unicode connector punctuation
  • a zero-width-non-joiner
  • a zero-width joiner.

IE goes beyond the standard and is permissive enough to allow some symbols, such as ☺.

There’s also a tool that will tell you if any string that you enter is a valid JavaScript variable name according to ECMAScript 5.1 and Unicode 6.1:

JavaScript variable name validator http://i.imgur.com/GNv5t.png

ಠ_ಠ and 草泥马 only contain "letters" used in actual alphabets; that is, ಠ is a symbol from the Kannada alphabet, and 草泥马 consists of Chinese characters.

◎ and ☺, however, are purely symbols; they are not associated with any alphabet.

The ECMAScript standard, chapter 7.6 (which I the browsers except IE are following), states that an identifier must start with on of the following.

  • a Unicode letter
  • $ or _
  • \ followed by a unicode escape sequence.

The following characters of an identifier must be one of the following.

  • any of the characters permitted at the start
  • a Unicode combining mark
  • a Unicode digit
  • a Unicode connector punctuation
  • a zero-width-non-joiner
  • a zero-width joiner

IE goes beyond the standard and is permissive enough to allow some symbols, such as ☺.

There’s a tool that will tell you if any string that you enter is a valid JavaScript variable name according to ECMAScript 5.1 and Unicode 6.1.

added 78 characters in body
Source Link
Peter Olson
  • 143.5k
  • 49
  • 209
  • 249
Loading
added 338 characters in body
Source Link
Mathias Bynens
  • 150.6k
  • 54
  • 224
  • 254
Loading
deleted 2 characters in body
Source Link
Ken Redler
  • 23.9k
  • 8
  • 60
  • 69
Loading
Revise explanation of IE behavior slightly
Source Link
Michael Madsen
  • 55.1k
  • 8
  • 75
  • 83
Loading
added 67 characters in body
Source Link
Michael Madsen
  • 55.1k
  • 8
  • 75
  • 83
Loading
Source Link
Michael Madsen
  • 55.1k
  • 8
  • 75
  • 83
Loading