Quantcast
Channel: Active questions tagged require - Stack Overflow
Viewing all articles
Browse latest Browse all 153

What is exactly define(function(require){...}) in JavaScript

$
0
0

I understand that define is used to define a module, and function is an anonymous function, but what does the argument 'require' in the function hold?

If I write anything in define(function(require){...}), when will this be called? How to give a call to his anonymous function?

Please help, I am new to advanced JS.


Viewing all articles
Browse latest Browse all 153

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>