> For the complete documentation index, see [llms.txt](https://data-js.gitbook.io/data-js/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://data-js.gitbook.io/data-js/change-all-values-of-the-array-to-a-single-value.md).

# Change all values ​​of the array to a single value

To do this, you need the fill: method.

```
var app = new Data(["D","B","A","C"],{
    fill: "data.js"
});
```
