How can i find out the character length of a string variable and then store that value in a integer variable, using javascript?
var someString = "blah blah";
var stringLength = someString.Length;
you should use the Length property the string class.
var l = str.Length;
it will return an int so the variable in lefthandside will become an int because js is a dynamic language. infact the string class in so powerful but unity guys did not document it. take a look at the real documentation of hte class here. String is not a unity class and is the System.String class of .NET/MONO. see the Length property too.