I’m having trouble wrapping my head around how i is being counted in arr.slice. would i be 2 since its going by i+=size where size is the number in this scenario.

**Your code so far**

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

**Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36