Chapter 3. Data Structures: Objects and Arrays

In this chapter, we will solve a programming problem that involves extracting data from text. In the process, we learn about object values and arrays and how to use them.

The Problem: Aunt Emily's Cats

Consider the following situation: Your crazy Aunt Emily, who is rumored to have more than 50 cats living with her (you never managed to count them), regularly sends you emails to keep you up-to-date on her exploits. They usually look like this:

Dear nephew,

Your mother told me you have taken up skydiving. Is this true? You watch yourself, young man! Remember what happened to my husband? And that was only from the second floor!

Anyway, things are very exciting here. I have spent all week trying to get the ...

Get Eloquent JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.