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

# 배열 map 메서드

```javascript
var 후보군 = Array(45);
var 필  = 후보군.fill();//undefined로 채워진 배열이 된다.

var 맵 = 필.map(function(요소,인덱스){
    return 1;//요소들이 다 1로 매칭되어 채워진다.응용=> return 인덱스 +1;하면 1부터 45까지 값으로 매핑되어 채워진다.
});
```
