function createGrid(size) {
    const grid = [];
    for (i = 0; i < size; i++) {
      grid[i] = [];
      for (j = 0; j < size; j++) {
        grid[i][j] = " 0 ";
      }
    }
    //return grid value
    return grid;
  }
//1. create function that takes a size parameter to create a grid
1. create function that takes a size parameter to create a grid
1 . create function that takes a size parameter to create a grid
function createGrid(size) {
    const grid = [];
    for (i = 0; i < size; i++) {
      grid[i] = [];
      for (j = 0; j < size; j++) {
        grid[i][j] = " 0 ";
      }
    }
    return grid;
  }
function createGrid ( size ) { const grid = [ ] ; for ( i = 0 ; i < size ; i ++ ) { grid [ i ] = [ ] ; for ( j = 0 ; j < size ; j ++ ) { grid [ i ] [ j ] = " 0 " ; } } return grid ; }
1. create function that takes a size parameter to create a grid
1 . create function that takes a size parameter to create a grid
//return grid value