# 4.2.7 for…of 루프

* 배열, 이터러블 객체에 모두 사용할 수 있는 범용적인 루프
* 배열에 루프를 실행해야 하지만 **각 요소의 인덱스를 알 필요 없을 때 사용**하면 됌
* 인덱스를 알아야한다면 일반적인 for 루프 사용해야함


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://april.gitbook.io/learning-js/chapter-4./4.2/4.2.7-for...of.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
