Reputation: 25399
I know $ in as alias for jQuery.
Can someone please enlighten me what three dollars mean in java script? I am seeing both of the following are working.
var stxx = new CIQ.ChartEngine({ container: $$$("#idOfDev") });
var stxx = new CIQ.ChartEngine({ container: $$$(".classAppliedToDev") });
Both of them are selecting the dev to which id or class is applied.
But strangely when I make it single $ instead of three $$$, it would not work.
Upvotes: 1
Views: 538
Reputation: 3601
It looks like you are referencing ChartIQ SDK. Looking at their documentation they provide the explanation behind these variables
http://documentation.chartiq.com/global.html#__$__anchor
$$(id [, source])
Shorthand for getElementById(). Equivalent to prototype style $() which is faster but less powerful than jquery style $()
and then
$$$(selector [, source])
Functional equivalent of querySelector(). Functionally equivalent to jquery $(). This uses querySelectorAll in order to maintain compatibility with IE 9. Note that if multiple objects match the selector then only the first will be returned.
Upvotes: 3