Choose where you’d like to start

len()

Overview

The len() function takes a string as an argument. It returns the count of characters (including spaces) in that string.

Return Type

  • Number

Syntax

<variable> = <string>.len();

(OR)

<variable> = len(<string>);

(OR)

<variable> = <string>.length();

(OR)

<variable> = length(<string>);
ParameterDescriptionData type
<variable>Variable which will contain the count of charactersNUMBER
<string>The string whose number of characters will be returnedTEXT

Examples

text = "Create database applications with Zoho Creator";
count= text.len();      //returns 46

Get Started Now

Execute