← Back to challenges

Concatenating Two Integer Arrays

JavaScriptHardarrayslanguage_fundamentalsnumbers

Instructions

Create a function to concatenate two integer arrays.

Examples

concat([1, 3, 5], [2, 6, 8]) ➞ [1, 3, 5, 2, 6, 8]

concat([7, 8], [10, 9, 1, 1, 2]) ➞ [7, 8, 10, 9, 1, 1, 2]

concat([4, 5, 1], [3, 3, 3, 3, 3]) ➞ [4, 5, 1, 3, 3, 3, 3, 3]
javascript
Loading editor…
to run
Walks through the solution with reasoning and edge cases.
Next: Find the Index