left
Description
Extract a specified number of characters from the left side of a text.
Input / Parameter
Name | Description | Input Type | Default | Options | Required |
---|---|---|---|---|---|
string | The value where the extraction would happen. | String/Text | - | - | Yes |
length | The number of characters to extract. | Number | 0 | - | 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 extracted text. | String/Text |
Callback
N/A
Video
Coming soon.
Example
The user wants to display a specified number of characters from the left hand side of a string.
Step
Call the function
console
. Call the functionleft
inside thevalue
parameter of theconsole
function. string: 123456789 length : 6
Result
Links
Last updated