View all questions & answers for the JavaScript-Developer-I exam
myArraym can have one level, two levels, or more levels.
Which statement flattens myArray when it can be arbitrarily nested?
myArray. reduce ((prev, curr) => prev.concat(curr)[ ]);
myArray. join (",").split (",");
[ ] .concat {. . .myArray) ;
myArray.flat(Infinity);
Submit