> For the complete documentation index, see [llms.txt](https://eleven-fifty-academy.gitbook.io/javascript-152-objects-arrays/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://eleven-fifty-academy.gitbook.io/javascript-152-objects-arrays/05-arrays/array-methods/.reverse-method.md).

# .reverse() Method

Believe it or not the `.reverse()` method is used to reverse the order of elements within an array.

```javascript
var meals = ['breakfast', 'lunch', 'dinner'];
console.log(meals.reverse());
```

**Output**

```javascript
[ 'dinner', 'lunch', 'breakfast' ]
```
