# API

The code of modules and expressions is written in JavaScript and supports the ECMAScript 5 specification. The following built-in objects are available for programming (you can learn more about them [<mark style="color:blue;">here</mark>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects)). If you have any suggestions for extending our API, please email to [<mark style="color:blue;">support@monokot.io</mark>](mailto:support@monokot.io).

| **Object** | **Description**                                         |
| ---------- | ------------------------------------------------------- |
| Array      | Represents an untyped array                             |
| Boolean    | Represents a boolean value                              |
| DataView   | Intended for converting numbers to bytes and vice versa |
| Date       | Represents date and time                                |
| Error      | Represents an exception                                 |
| JSON       | Intended for creating objects from JSON string          |
| Map        | Represents an object containing key/value pairs         |
| Math       | Intended for accessing mathematical operations          |
| Number     | Represents a number                                     |
| RegExp     | Intended for working with regular expressions           |
| Set        | Represents a set of objects with key access             |
| String     | Represents a string                                     |
| TypedArray | Represents a typed array, e.g. Int16Array               |

Further in this section, the API for working with objects inside the server is described.


---

# 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://docs.monokot.io/scripts/api.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.
