Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Java by (9.5k points)

Below is the code I’ve in JavaScript: 

define(['param1', 'param2'], function() {

});

Can anyone tell me how the ‘define’ function works? 

1 Answer

0 votes
by (19.7k points)

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.

Browse Categories

...