# length

## Description

Count the total number of characters in the text.

## Input / Parameter

| Name             | Description                                                                                  | Input Type  | Default | Options | Required |
| ---------------- | -------------------------------------------------------------------------------------------- | ----------- | ------- | ------- | -------- |
| string           | The value to be counted.                                                                     | String/Text | -       | -       | Yes      |
| byLanguageFormat | To follow the language format. Usually this matters for languages that doesn't use alphabet. | Boolean     | false   | -       | No       |

## Output

| Description                                 | Output Type |
| ------------------------------------------- | ----------- |
| Returns the total number of the characters. | Number      |

## Callback

N/A

## Video

Coming soon.

## Example

The user wants to get the total number of characters in a string.<br>

### Step

1. Call the function `console`. Call the function `length` inside the `value` parameter of the `console` function.\
   string: ABCDEF<br>

   ![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-132e263a149b64c2e7e1cddc454a87aa509b551f%2Flength-step-1.png?alt=media)

   ![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-0d27489f94f105e3b5a5f09e61cfe7eb4af12402%2Flength-step-2.png?alt=media)

### Result

The console returns '6', which is the length of the string.

## Links
