The length
property returns the
number of characters in the string.
The length of an empty string is 0.
length |
Yes | Yes | Yes | Yes | Yes |
stringObject.length;
The length of a string.
var stringValue = "hello world";
console.log(stringValue.length); //"11"
The code above generates the following result.