Top "Requirejs-define" questions

What is define([ , function ]) in JavaScript?

I see this being used all the time in JavaScript: define(['param1', 'param2'], function() { }); What is the define …

javascript function requirejs-define
What is 'define' used for in JavaScript (aside from the obvious)?

I have searched high and low for documentation on this, but I just cannot find anything anywhere. I am using …

javascript requirejs requirejs-define