These samples demonstrate how to use various features in the ArcGIS API for JavaScript. Each sample page contains a description of what happens in the sample, the source code and links to view the sample live.
In addition to the samples featured in the side bar, more samples are available by using search box in the upper right.