Build a Library Manager - Step 6

Tell us what’s happening:

function getBookInformation(catalog) {
return catalog.map(book => book.title);
}

why it keep says ‘Your getBookInformation function should return an array’?

Your code so far


// User Editable Region

function getBookInformation(catalog) {
  return catalog.map(book => book.title);
}

// 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/142.0.0.0 Safari/537.36

Challenge Information:

Build a Library Manager - Step 6

This code successfully passes the test when I try it.

Please reset the step and try it again.

Finally, thank you so much!

1 Like