1

What does the following function definition mean in JavaScript:

var Candy = (function(self, $) {
    return self;
}  (Candy || {}, jQuery));

I am still learning JavaScript. And am trying to read and understand one of the applications I downloaded online. I can't figure out what the meaning of the above function definition is. This is only the trimmed version of the module.

Andy
  • 61,948
  • 13
  • 68
  • 95
Sir Isaac
  • 23
  • 3

0 Answers0