> For the complete documentation index, see [llms.txt](https://sudevgeny.gitbook.io/typescript/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sudevgeny.gitbook.io/typescript/main-1/create-arrays.md).

# Create Arrays

Creating an empty array is super easy:

```typescript
const foo:string[] = [];
```

If you want to create an array pre-filled with some content use the ES6 `Array.prototype.fill`:

```typescript
const foo:string[] = new Array(3).fill('');
console.log(foo); // ['','',''];
```
