I know there are similar questions out there (the closest one I found was this JavaScript; n-dimensional array creation) but most one them are in Python and even this one I found I tried to implement in my code and It didn’t work. So I want to create a function createGrid(L,n) that take as parameters two arrays of same size,