1

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.

VivekDev
  • 20,868
  • 27
  • 132
  • 202

1 Answers1

3

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.

Ryan Gibbons
  • 3,511
  • 31
  • 32