:: Forum >>
A small general question on JavaScript
Hi
Looking through the site.js used in the examples I saw that some variables (such as header or footer) are defined with e.g. var $header...
What intrigues me is, does that $ sign mean something special in Javascript? I'm not a JS expert but I had not seen this previously anywhere else.
Thank you.
Gonzalo
Wednesday, April 13, 2005
No, there is no special meaning for $ symbol. I am using $ and _ prefixes in ActiveWidgets to indicate that variable or method is 'private'.
I don't really recommend looking at site.js at all :-)
Alex (ActiveWidgets)
Wednesday, April 13, 2005
Ok, I imagined as much, that it was just a personal coding convention. but just to be sure.
Thank you :)
Gonzalo
Thursday, April 14, 2005
This topic is archived.
Back to support forum
Forum search