Skip to content
Junior–Senior164 views

Function to double array elements

Task condition

Create a function that takes an array (for example, called inputArray) and returns a new array in which each element of the original array appears twice in a row.

Frontend tasks in the code trainer