IntermediateJavaScript

Merge two sorted arrays

Write a function to merge two sorted arrays into a single sorted array.

Examples

Input: [1, 3, 5], [2, 4, 6]

Output: [1, 2, 3, 4, 5, 6]

Your Solution

Output

Click 'Run Code' to see the output