Apply your objects mental model
Let's apply our new way of thinking about objects.
Remember to think in terms of expressions!
- Retrieve the
contentof the post. - Retrieve the
usernameof the author. - Retrieve the
textof the second comment. - Retrieve the number of comments on the post using the
getCommentCount()method. - 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.