# length

Returns the length of the argument.

Any data type can be used. For bytes, the byte length is returned. When used in a query with an array as argument, this function returns the number of items in the array.

## Arguments

Element for which you want to return the length.

## Examples

| Expression | Result |
| --- | --- |
| length(0xFFFF) | 2 |