ES6 - Write Arrow Functions with Parameters

Tell us what’s happening:
I need someone to explain why this is the solution. My question is how come there is no variable or character after the arrow function? Like how come I don’t have to type “arr1” and “arr2” after the arrow function
Your code so far

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

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

Your browser information:

Challenge: ES6 - Write Arrow Functions with Parameters

Link to the challenge:

Could you provide more information on your question

1 Like

Welcome to the community!

I found a great article in FCC News that I could help understand Arrow Functions with Parameters a bit more.

Happy coding.

1 Like

Can you post a code example of what you mean by this? I’m not sure I understand it.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.