0

I read the answers to this question and understand what the code

var qq = qq || {};

is doing, but what is the significance of qq in general. Is it just common practice to use qq as opposed to zz or bb or ag? Or does it have to be the letters qq?

If it does have to be the letters qq, then what is qq?

Community
  • 1
  • 1
d.lanza38
  • 2,525
  • 7
  • 30
  • 52

4 Answers4

2

It has no particular significance. It's just a random variable name.

T.J. Crowder
  • 1,031,962
  • 187
  • 1,923
  • 1,875
2

It seems to be simply a quick variable name, like foo, bar, and baz.

Andrew C
  • 689
  • 2
  • 9
  • 23
0

It's just a variable name. The same construct would work with zz, or bb, or ag, or bz, or tg, or hr, or eq, or po, or ly, or ed, or anything else.

Pointy
  • 405,095
  • 59
  • 585
  • 614
0

The variable qq has no special meaning in Javascript. If you come across it, it's probably related to a FileUploaderBasic library inside of your codebase.

The project File Uploader which became Fine Uploader depends on window.qq as an object that it can attach methods/properties to. You can see in the code that things are attached to a globally defined qq object, and it's even listed as a predefined global variable in File Uploader's jshint config.

Cory Danielson
  • 14,314
  • 3
  • 44
  • 51