Add Layers using ArcGISDynamicMapService in JavaScript API

Discussion created by suman.dasgupta on Nov 20, 2011
Latest reply on Dec 28, 2011 by anthony.warren
I know that from ArcGIS Server Version 10.1 and Silverlight 3 onwards, the ArcGIS Server dynamic map services supports the ability to change the rendering and order or layers on the fly.

Is this functionality available in JavaScript API s as well. I am fairly new to this area and any kind of help will be appreciated