Apply your objects mental model

Let's apply our new way of thinking about objects.

Remember to think in terms of expressions!

  1. Retrieve the content of the post.
  2. Retrieve the username of the author.
  3. Retrieve the text of the second comment.
  4. Retrieve the number of comments on the post using the getCommentCount() method.
  5. Retrieve the number of followers of the author using the getFollowers() method.

(optional) The Second Challenge

This is a more challenging question, covering things we haven't even discussed yet 😲. It requires you to think about what value the genie points at after each expression. The goal is cognitive effort, not getting the right answer.

I recommend copying the code into your code editor and isolating the expressions with well-named variables.

The question: retrieve the number of followers in the "active" category.