News for hackers. Stuff that matters.
Re:Chrome Developer Tools: Back to Basics by catch23 on Thursday February 24, 2011 @03:24PM (#2259672)
the '$' is just another character from the view of the javascript interpreter. It just so happens you can use A-Z, 0-9, underscore, and the dollar sign as variable names. Libraries like Prototype & jQuery have popularized using the dollar sign as a globally accessible namespace variable, but it's nothing more than just another character.
Re:Chrome Developer Tools: Back to Basics by pyre on Friday February 25, 2011 @01:20AM (#2261277)
I think that the parent is referring to the Chrome console which has (IIRC) jQuery baked into it, even if jQuery isn't part of the actual page.
Re:Chrome Developer Tools: Back to Basics by catch23 on Friday February 25, 2011 @05:26AM (#2261754)
Does it? I don't see it in mine. HN doesn't use jQuery and when I fire up my console, the $ variable is not overwritten with a jQuery object, also there is no jQuery variable available.