...

View Full Version : count string characters



dark0s
08-29-2010, 12:42 PM
How can to obtain length of string variable, for example if I have:

var msg = 'hello world!';

Does it exist a method to count string characters?

Dormilich
08-29-2010, 01:53 PM
you said it yourself: length

dark0s
08-29-2010, 02:09 PM
That is to say msg.length ?

Dormilich
08-29-2010, 05:45 PM
yepp.

dark0s
08-29-2010, 06:02 PM
Ok, thank you



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum