Concatenate Arrays with concat need help with it

Concatenate Arrays with concat need help with it
0.0 0

#1

Tell us what’s happening:

Your code so far

var oldArray = [1,2,3];
var newArray = [];

var concatMe = [4,5,6];

// Only change code below this line.

newArray = oldArray.concat(oldArray.concat(newArray));

Your browser information:

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

Link to the challenge:


#2

As it stands, your code concatenates newArray onto the end of oldArray, then concatenates the result of that onto oldArray again, then assigns that result to newArray. That’s not what the challenge asks you to do.