> For the complete documentation index, see [llms.txt](https://betwinsouls.gitbook.io/full-stack-javascript/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://betwinsouls.gitbook.io/full-stack-javascript/objects/referencing_objects_within_objects.md).

# Referencing Objects within Objects

To get to the deeper properties of an object within another object we can use dot extension or subsequent bracket notation.

```
var myBookBox = { height: 8, length: 10, width: 12,
              book1: {title: "Strange Case of Dr Jekyll and Mr Hyde", author: "Robert Louis Stevenson"
}
```

Dot notation:

`console.log(myBookBox.book1.title);`

This logs out the Strange Case of Dr Jekyll and Mr Hyde.

Wit bracket notation: `console.log( myBookBox["book1"]["author"] );`

This logs out Robert Louis Stevenson.
