0

Possible Duplicate:
Valid Characters for JavaScript Variable Names

Started learning Javascript and found out that one can name a variable like

var $importantVar;

I am wondering can we name variables with a $ sign while all other special characters are not allowed?

Note: I know you can use _ too before the name but thats something which is allowed in all other languages too(At least C and C++).

Community
  • 1
  • 1

0 Answers0