I am faced with a coding problem involving two separate Javascript arrays:
['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12']
['a', 'b', 'c']
The task at hand is to incorporate elements from the second array into specific positions within the first array, specifically every 4th or nth index instance, resulting in:
['a', '1', '2', '3', '4', 'b', '5', '6', '7', '8', 'c', '9', '10', '11', '12']
This parameter n must be adjustable, allowing for the placement of elements at different locations in the array as needed.
If you have any solutions, especially those utilizing ES6 functionality, please share them. Thank you for your help!