|
Posted by Michael Winter on 12/05/45 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.
Indeed:
The dollar sign ($) and the underscore (_) are permitted
anywhere in an identifier. The dollar sign is intended for use
only in mechanically generated code.
-- 7.6 Identifiers, ECMA-262, 3rd Ed.
and there's no reason not to follow that convention.
Mike
Navigation:
[Reply to this message]
|