Above code is the function defined for implementing replace() method.
replace(arr,"Suman","Vineet"); Here we have passed "Vineet" to be replaced by the array element "Suman".
Output of the example is as follows:
Rs. 20,000 US$ 300
Today: Rs. 10,000 US$150
Course Duration: 30 hrs
Posted on: November 11, 2008 If you enjoyed this post then why not add us on Google+? Add us to your Circles