English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
String'slengthThe property returns the length of a string. For an empty string, the length is 0.
string.length
var str = 'oldtoolbag.com'; str.length;Test See‹/›
All browsers fully support the length property:
Property | |||||
length | Yes | Yes | Yes | Yes | Yes |
Return Value: | String Length |
---|---|
JavaScript Version: | ECMAScript 1 |