-
-
Save aleksey-rezvov/ad1dfd166bc4e5522da16f22bed5bc7e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var matrixExample = [ | |
[ 1, 2, 3, 4 ], | |
[ 4, 5, 6, 5 ], | |
[ 7, 8, 9, 7 ], | |
[ 7, 8, 9, 7 ] | |
]; | |
function sumUpDiagonals(matrix) { | |
// ... | |
} | |
console.log(sumUpDiagonals(matrixExample)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment