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