# ExecuteJS

**Execute JavaScript**

Executing JavaScript is a request type that lies within the Internal Content Integration, facilitating the invocation of JavaScript functions. This request type comprises three essential parameters: FunctionName, FunctionParameter, and FunctionPayload.

1. The **FunctionName** parameter is a string field intended to pass the corresponding function name used within the FunctionPayload.
2. **FunctionParameter** represents the data field through which parameters are conveyed to the JavaScript function, requiring the parameters to be passed in JSON format.
3. **FunctionPayload** serves as the parameter designated for authoring JavaScript code to be executed dynamically at runtime, facilitating the attainment of desired outputs through its utilization.

**Example**

| FunctionName      | AddNumbers                                                                                                      |
| ----------------- | --------------------------------------------------------------------------------------------------------------- |
| FunctionParameter | {"a":1,"b":2}                                                                                                   |
| FunctionPayload   | <p>function AddNumbers(data)</p><p>{</p><p>let c=parseInt(data.a)+parseInt(data.b);</p><p>return c;</p><p>}</p> |

<figure><img src="/files/Sfmr9VETUOk6S7RvlxJZ" alt=""><figcaption></figcaption></figure>


---

# 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.ixhello.com/ixhc/apps/executejs.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.
