To access the third element in an array, we need to use the index 2.

In the names array, "Michael" is at index 0, "Jim" is at index 1, and "Dwight" is at index 2.