The JavaScript API is hosted by ESRI on ArcGIS Online and is available for free ... No need to download and re-install the API when new versions are released.
developers.arcgis.com