Back
Below is the code I’ve in JavaScript:
define(['param1', 'param2'], function() {});
define(['param1', 'param2'], function() {
});
Can anyone tell me how the ‘define’ function works?
define() function is a part of AMD spec of JavaScript. You can read about it here.
Interested in Java? Check out this Java Certification by Intellipaat.
31k questions
32.8k answers
501 comments
693 users