function twoDimArray(rows) {
    let myArray = [];

    for(let i = 0; i < rows; i++) {
        myArray[i] = [];
    }
    return myArray;
}
//twoDimArray returns a newly initialized two-dimensional array.
twoDimArray returns a newly initialized two-dimensional array.
twoDimArray returns a newly initialized two - dimensional array .
function twoDimArray(rows) {
    let myArray = [];
    for(let i = 0; i < rows; i++) {
        myArray[i] = [];
    }
    return myArray;
}
function twoDimArray ( rows ) { let myArray = [ ] ; for ( let i = 0 ; i < rows ; i ++ ) { myArray [ i ] = [ ] ; } return myArray ; }
twoDimArray returns a newly initialized two-dimensional array.
twoDimArray returns a newly initialized two - dimensional array .