title: What is the main difference between require() and define() function in dojo and when would we use either?
body: <p>I am new to learning dojo and I have come across the <code>require()</code> and <code>define()</code> functions and I can not get my head around either of them. Also, when would I use either of them? A small demo or example would be beneficial. Many Thanks! </p>