Basic Algorithm Scripting: Chunky Monkey help please

function chunkArrayInGroups(arr, size) {
  // Break it up.
  let subarray = [];
  let result = [];
  for (let i = 0;i < arr.length;i+=size) {
    subarray = [];
    subarray.push(arr.slice(i,(i+size)));
    result.push(subarray);
  }
  return result;
}

chunkArrayInGroups(["a", "b", "c", "d"], 2);

in the console.log I am getting the result but why is it not passing the test? Help please

try looking at it with the browser console, or run it on repl.it
(or you can also use console.log(JSON.stringify(...)))
(or this tool: http://pythontutor.com/javascript.html )

if you don’t see the issue with that return here