Link Search Menu Expand Document

Write Arrow Functions with Parameters

Summary

  • Arguments can be passed in arrow functions.

Final Code

const myConcat = (arr1, arr2) => arr1.concat(arr2);

console.log(myConcat([1, 2], [3, 4, 5]));