length

Summary

Returns the number of characters in the string.

Usage

public property int length()

Returns

The number of characters in the string.

Description

Returns the number of characters in the string.

Examples

Basic Usage
1
2
3
4
import System;
 
Console.log("abc".length); // 3
Console.log("Hi".length);  // 2

Share

HTML | BBCode | Direct Link