Skip to content
Junior–Senior166 views

Creating a copy of an array with doubled elements using reduce

Task condition

It is necessary to use the reduce method to create a new copy of the given numeric array, with each element in the new collection multiplied by 2. The original array remains unchanged.

Frontend tasks in the code trainer