Menu
Coddy logo textTech

Recap - All About Arrays

Part of the Logic & Flow section of Coddy's JavaScript journey — lesson 14 of 65.

challenge icon

Challenge

Easy

Create a function stackMatrices that receives an array of 2D arrays matrixList (which is essentially a 3D array). All these arrays share the same number of columns. The function should combine them vertically into one 2D array, appending rows from each 2D array in sequence.

Try it yourself

function stackMatrices(matrixList) {
  // TODO: Merge all 2D arrays in 'matrixList' vertically into one 2D array
}
// Do not write anything outside function

All lessons in Logic & Flow