JavaScript: The Definitive Guide

24.168. String.length: the length of a string

ECMAScript v1

24.168.1. Synopsis

string.length

24.168.2. Description

The String.length property is a read-only integer that indicates the number of characters in the specified string. For any string s, the index of the last character is s.length-1. The length property of a string is not enumerated by a for/in loop and may not be deleted with the delete operator.

Категории