Question

How to get the length of a string in JavaScript?


Annonce
Ad

Answer

myString.lenght
var str = "Some text";
var n = str.length;	// n=9


[source]
# ID Query