No idea why its not passing

My answer is supposed to pass but wonder why it isnt passing. The only difference i notice is the space between the arrays in the starting and ending

function chunkArrayIntoGroups(arr ,size) {
let array = [];

for(let i=0; i < arr.length; i+=size){
    let slicedArr = arr.slice(i, i+size);
return array;

let x = chunkArrayIntoGroups(["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/96.0.4664.110 Safari/537.36 Edg/96.0.1054.62

Challenge: Chunky Monkey

Link to the challenge:

Name of the function is different than what tests expect.

1 Like

You’re right.
I did this in VSC and just copy pasted it into it.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.