Wednesday, August 3, 2011

Length - property


The length property returns the length of a string (in characters).

Syntax

string.length


e.g
ko="I will count this string now!";

ji=ko.length;

document.write(ji);

Which Prints:
29