dojo.require: -
// AMD require(["esri/map", ... ], function(Map, ... ){ ... }); // legacy dojo.require("esri.map");
dojo.ready :-
It is very similar to <body onload="">. It is initializing to block after the page has finished loading.
// legacy dojo.ready(init); // AMD require(["dojo/ready"], function(ready){ ready(function(){ }); });
dojo.connect: -
It is very similar to JavaScript elements functions looks like,
1. Element.addEventListener and
2. Element.attachEvent.
// legacy dojo.connect(myMap, "onLoad", myLoadHandler); // AMD require(["esri/map", "dojo/on"], function(Map, on) { on(myMap, "load", callback); });
dojo.byId: -
It is very similar to the JavaScript document.getElementById(id) function and this function returns the first HTML element with the argument ID.
// legacy dojo.byId("myInputField").value = myMap.id;