Explain Your Year-End Report

Your year-end report now runs from start to finish. The tests passed, and the printout matches the one you wrote out by hand in the project brief, Luis’s “no books yet” line included. Passing tests can’t show why the log is shaped the way it is or why the authors went into a Set while the genre counts went into an object.

In this session, you’ll explain those choices to the mentor in your own words. Then you’ll answer a new question for the report, sketching the shape of the answer before you write any code. First, look again at the shape of the data your report reads.

Walk the Mentor Through Your Report

Here’s log once more, one level per line, as you sketched it in the project brief:

log: array of 6 member objects
  [i] { name, books }
    books: array of book objects (Luis: [])
      [j] { title, author, genre, rating, review? }

Locked learning resources

Join us and get access to thousands of tutorials and a community of expert JavaScript developers.

Unlock This Lesson

Already a member? Sign-In

Locked learning resources

The full lesson is for members only. Join us and get access to thousands of tutorials and a community of expert JavaScript developers.

Unlock This Lesson

Already a member? Sign-In

Become a Member to join the conversation.