javascript - Get the length of an element inside of an array -


i trying find length of elements inside of array.

var test = ["hi", "bye"]; 

how can length of test[0] ("hi") or test[1] ("bye")?

in main code, have stored value inside array. value has been stored "svars alternativ_4" in array[0]. tried length doing array[0].length giving me wrong length. giving me 20 , if remove value same.. why?

like this:

test[0].length    //for "hi" test[1].length    //for "bye" 

Comments

Popular posts from this blog

What can cause "Required Package 'IndyCore' not found" when compiling a Delphi 2010 project? -

Change the color of an oval at click in Java AWT -