AnsweredAssumed Answered

Require

Question asked by jay.kapalczynski on Feb 7, 2014
Latest reply on Feb 19, 2014 by odoe
Looking at examples and seeing two different ways to require dojo.
Whats the difference and which one should I be using?
Sorry for the green question...

dojo.require("esri.map"); dojo.require("esri.layers.FeatureLayer")


Or like this

var map;   require([     "esri/map", "esri/layers/FeatureLayer"   ], function(   Map, FeatureLayer   ) 

Outcomes