This question is more on requirejs but I would like to hear from experts.
I see we have called require and define method of require.js.
I see signatures as
require(array-of-strings,callback-function-returning-an-object)
define(callback-function-returning-an-object)
It seems like require is like asking "load following libraries and then call the callback function. Pass module defined by those libraries as input to callback function."
define is like "Define a module with lots of properties"
Is my understanding OK (I know its just a surface)? It will be good if you can throw some more light.
What is the significance of below signature
define(array-of-strings,callback-function-returning-an-object) --> Is it doing same stuff as done by require method? Loading libraries and then calling callback by their defined modules.
Thanks
Sanjeev.