# 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="https://1107164708-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8XHvUsfyTUFLvToHqD%2Fuploads%2F9uhTRQ3BAQ1f3N15oXLZ%2Fimage.png?alt=media&#x26;token=93c31c01-d899-4b03-a527-942fd6a2dae1" alt=""><figcaption></figcaption></figure>
