Skip to content

Instantly share code, notes, and snippets.

@ridheshcybe
Created September 30, 2021 06:17
Show Gist options
  • Save ridheshcybe/bc730efd20fddf3fb709e818792ddc65 to your computer and use it in GitHub Desktop.
Save ridheshcybe/bc730efd20fddf3fb709e818792ddc65 to your computer and use it in GitHub Desktop.
function make2darray(cols,rows){
var arr = new Array(cols);
for(vae i=0; i<arr.length; i++){
arr[i] =new Array(rows);
}
return arr;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment