Javascript Program to read a square matrix and print the elements on secondary diagonal
let matrix = new Array ( 5 ) ; for ( let i = 0 ; i < 5 ; i ++ ) { matrix [ i ] = new Array ( 5 ) ; for ( let j = 0 ; j < 5 ; j ++ ) { matrix [ i ] [ j ] = 0 ; } } let row_index , column_index , x = 0 , size = 5 ;