contents   index   previous   next



String length

syntax:

string.length

description:

The length of a string, that is, the number of characters in a string. JavaScript strings may contain the "\0" character.

 

see:

String lastIndexOf()

 

example:

var s = "a string";

var n = s.length;

 


String object instance methods