Skip to content
Prev Previous commit
Next Next commit
fixed the errors!
  • Loading branch information
EliaYazdi committed Aug 3, 2019
commit 6e4aee1314eea093067ab03d740735c420985387
1 change: 0 additions & 1 deletion Week3/homework/step2-5.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ function multiplyAll(arr) {
return product;
}


const result = multiplyAll([
[1, 2],
[3, 4],
Expand Down
3 changes: 1 addition & 2 deletions Week3/homework/step2-6.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@ function flattenArray2d(arr) {
}
console.log(flattenArray2d(arr2d));


function flattenArray3d(arr) {
let flattenArr3 = [];
const flattenArr3 = [];
for (let i = 0; i < arr.length; i++) {
for (let j = 0; j < arr[i].length; j++) {
for (let l = 0; l < arr[i][j].length; l++) {
Expand Down