Recap - All About Arrays
Part of the Logic & Flow section of Coddy's JavaScript journey — lesson 14 of 65.
Challenge
EasyCreate 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 functionAll lessons in Logic & Flow
1Strings In Depth
String FundamentalsIterate Over StringsTemplate LiteralsString MethodsRecap - String Weaver4JSON Part 2
Iterate Over JSONNested JSONJSON Optional ChainingShallow And Deep CopyRecap - Bicycle ShopRecap - Solar System10Manage Festival System
Project OverviewAdd Movies & Venues2Multi-dimensional Arrays
2D Arrays BasicsAccessing 2D Array ElementsNested Loops with 2D ArraysRecap - 2D ArraysMatrix Addition & SubstractionJagged Arrays3D Arrays And BeyondCommon 2D Array PatternsRecap - All About Arrays5Sets Part 1
What Is A Set?Iterating Over SetsAdding An ElementRemoving An ElementChecking If An Element ExistsSize And Is EmptyCopy And ClearRecap - Basic Of Sets8Arrays Interesting Topics
Array DestructuringSpread Syntax in ArraysSparse ArraysRecap - Arrays Workshop3JSON Part 1
What is a JSON?Check If Key ExistsObject MethodsThe Spread Operator Part 1The Spread Operator Part 2Remove KeysRecap - JSON Manipulate Keys