> For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt.

# `__LastElement`

## Introduction

Returns the last child node of the Element.

## Syntax

```jsx
__LastElement(element: Element) : Element|undefined;
```

### Parameters

|   Key   | Description         |
| :-----: | ------------------- |
| element | Any Element object. |

### Return Value

Returns the last child node of the current Element.

## Example

The frontend framework can retrieve the last child node of an Element as follows.

```jsx
// main-thread.js
let element = __CreateElement('view', 0, {});

let last = __LastElement(element);
```
