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

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

c# - Unity IoC Lifetime per HttpRequest for UserStore -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -