In the code given below,
the forEach
method is used
to create a new array containing
all the elements of prices
but with the "Rs. " prefix.
But since the forEach
method
does not return an array
with the transformed elements,
replace it with the map
method.