ES6 - Write Arrow Functions with Parameters

Tell us what’s happening:

I was just wondering if there are way else to build the parameters. Been using plus but my return becomes this : 1,23,4,5, when it should be like this [1, 2, 3, 4, 5], I feel i’m on the right track just need a little nudge to open my thinking to some other solution


Your code so far

const myConcat = (myConcat, plus) => myConcat + plus;

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

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge Information:

ES6 - Write Arrow Functions with Parameters

You shouldn’t change the function body from what was originally there. The body was fine. It was the syntax for the function declaration you are supposed to change.

My bad hehe didn’t read the instructions properly

1 Like

No worries, parsing written English into code is hard

1 Like

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