function multiplyer(...arr){
    let res=[],product=1;
    
    for(var j=arr.length-1;j>=0;j--){
      
      res.unshift(arr[j].map(item=>item*product))
      product*=10
    }
    return res;
  }
  console.log(multiplyer([[2,3][3,5]]))
  I was expecting something like [[20,30][3,5]] but I think I have a problem with accessing the 2d array's elements. Results come as [ [ NaN ] ]
 
    