Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Info array

I have try to insert in inspectorthis line

l=["a","b","c"]
and than
l.lenght
but result is
undefined

why?

This is a bug of javascript engine?

— asked October 28th 2010 by gianluca rettore
  • array
  • lenght
  • property
0 Comments

2 Answers

  • This returns 3:

    l = ["a","b","c"];
    Ti.API.error(l.length);
    
    — answered October 28th 2010 by Jacob van Dam
    permalink
    0 Comments
  • Check your syntax/spelling….its length NOT lenght

    — answered October 28th 2010 by Duncan Kabinu
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.