**Tell us what’s happening:**

I’m not sure what I’m missing here. Logically this seems like it should work so maybe I’m missing something simple. Any direction is greatly appreciated.

**Your code so far**

```
function chunkArrayInGroups(arr, size) {
let a = [];
let b = [];
let c = 0;
for (let i=0; i<arr.length;i++) {
if (c<size) {
b.push(arr[i]);
c++;
} else {
c=0;
a.push(b);
let b = [];
}
}
return a;
}
chunkArrayInGroups(["a", "b", "c", "d"], 2);
```

**Your browser information:**

User Agent is: `Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0`

.

**Link to the challenge:**

https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-algorithm-scripting/chunky-monkey