Question by dai-ken dhi: How do you measure a string elements length in a array? In javascript?
Say I have a array:
var dog = {“dog”,”cat”,”something”};
I want to measure the length of the element something. How would I do this?

Best answer:

Answer by halrosser
dog[2].length

Give your answer to this question below!

Tagged with:

Filed under: Its a Dog's life

Like this post? Subscribe to my RSS feed and get loads more!