Build a Space Mission Roster - Step 26

Tell us what’s happening:

I am confused here. The result is showing chunk 1 and then names and chunk 2 with names below. I believe I got it right but the code is breaking. Could someone tell me the reason please?

Your code so far

const EVAChunks = chunkCrew(EVAReadySquad, 3);

for(let i = 0; i < EVAChunks.length; i++){
  console.log(`Chunk ${i+1}`)
  for(let j = 0; j < EVAChunks[i].length; j++){
    console.log(EVAChunks[i][j].name);
  }
}




// User Editable Region

Your browser information:

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

Challenge Information:

Build a Space Mission Roster - Step 26

You are missing colon in your first console.log()

Fixed that and it still did not pass “

for(let i = 0; i < EVAChunks.length; i++){

console.log(`Chunk ${i+1}`);

for(let j = 0; j < EVAChunks[i].length; j++){

console.log(EVAChunks\[i\]\[j\].name);

}

}

Test expects : after curly brackets. Look at the example.

1 Like

Got it. How was I so blind ugh. Thank you very much

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