The atEnd() method returns true if the enumerator is pointing to the last element in the collection; otherwise, it returns false.True is also returned if the collection is empty or undefined. Drive Letters and drive types: