Dave's Brain

Browse - Programming Tips - Why isn't a['length'] giving me what I expect?

Date: 2016apr23
Language: javaScript
Keywords: gotcha

Q.  Why isn't a['length'] giving me what I expect?

A.  Because its the same as a.length which gives the number
of elements in an array.

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.