odin-javascript-exercises/getTheTitles/README.md
Tatiana 18cffeb940 Revert "update cloning link"
This reverts commit 4c771f2e05.
2021-05-08 11:25:04 -07:00

26 lines
489 B
Markdown

# Get the Titles!
You are given an array of objects that represent books with an author and a title that looks like this:
```javascript
const books = [
{
title: 'Book',
author: 'Name'
},
{
title: 'Book2',
author: 'Name2'
}
]
```
your job is to write a function that takes the array and returns an array of titles:
```javascript
getTheTitles(books) // ['Book','Book2']
```
## Hints
- You should use a built-in javascript method to do most of the work for you!