Challenge 13 need help


#1

Hi can some one help with the code below thks

function allRocks(){

 var alpha = ['A','B','C','D','E','F','G','H','I','J','k','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'];
 var allrocks = [];
 
 
 for (var i = 0; i < GRID.length; i++){
   
    for (var j = 0; j < GRID[0].length; j++){
       if ('^' == GRID[i][j]){
          allrocks[i] = alpha[j]+(i+1);  
         
       // console.log("['"+allrocks[i]+"']")
       }
       
    }
    
 }
 
 return allrocks.toString();

}

function allCurrents(){

      var alpha = ['A','B','C','D','E','F','G','H','I','J','k','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'];
 let allcurrents = [];
 
 
 for (var i = 0; i < GRID.length; i++){
   
     
   
    for (var j = 0; j < GRID[0].length; j++){
       if ('~' == GRID[i][j]){
        
        allcurrents[i] = alpha[j]+(i+1);  
         
        //console.log(allcurrents[i]);
        
       }
       
    }
    //return allrocks;
 }
 return allcurrents.toString();
  }