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

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -