# makeId

## Description

Generates a unique ID or number.

## Input / Parameter

N/A

## Output

| Description                                          | Output Type |
| ---------------------------------------------------- | ----------- |
| Returns the unique ID, which is a series of numbers. | Number      |

## Callback

N/A

## Video

Coming Soon.

## Example

| No. | Description                                                                                                                                                                                                 |                                                                                                                                            |
| --- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| 1.  | ![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-9492deeab0d82bdb1e8ec4173f7d3fa51474de93%2FmakeId-step-1.png?alt=media) | Drag a button to a page in the mobile designer. Select the event `click` for the button and drag the `console` function to the event flow. |
| 2.  | ![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-bcda2f0add49cc74b9e8c07d397d45e96e569535%2FmakeId-step-2.png?alt=media) | Select the `function` parameter input type for the value parameter.                                                                        |
| 3.  | ![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-286946eee082a78ac7f40c4c3c6b9f8f67a3a84e%2FmakeId-step-3.png?alt=media) | Drag the `makeId` function to the node in the subflow.                                                                                     |

### Result

When the button is pressed, the console will show the unique id generated. A new unique id is returned everytime the button is pressed.

## Links
