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: