> For the complete documentation index, see [llms.txt](https://docs.newbot.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.newbot.io/conversescript-syntax/array-and-object.md).

# Array and object

Writing a table and an object are the same as JavaScript

### Array

```typescript
myArray = ['ana', 'jim']
name = myArray[0]
```

We can use the `Array` object to manipulate arrays

```typescript
myArray = ['ana', 'jim']
Array.length(myArray) // 2
```

### Object

```typescript
myObject = {
    name: 'ana'
}
name = myObject.name
```

We can also read a property. Like this :

```typescript
myObject = {
    name: 'ana'
}
name = myObject['name']
```
