|
Posted by Jonathan N. Little on 11/15/20 11:58
Leif K-Brooks wrote:
> Toby Inkster wrote:
>> Firstly, Javascript variables cannot begin with a dollar sign.
>
> Yes, they can; it's just not a very good idea in most cases. The
> ECMAScript spec says:
>
> IdentifierName ::
> IdentifierStart
> IdentifierName IdentifierPart
> IdentifierStart ::
> UnicodeLetter
> $
> _
> UnicodeEscapeSequence
> IdentifierPart ::
> IdentifierStart
> UnicodeCombiningMark
> UnicodeDigit
> UnicodeConnectorPunctuation
> UnicodeEscapeSequence
Very true, but man can you really mess yourself up when building the
page with PHP or Perl! You technically can but I would highly recommend
that you don't.
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Navigation:
[Reply to this message]
|