Array Members

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jock1up
    New Member
    • Jan 2008
    • 10

    #1

    Array Members

    I am not sure, but are the items in an array also called members? I have a question and wasn't sure. Does this array have 4 members? Not totally sure what the quotes are used for or if these are counted the same as the other 2 .htm items.

    FrameArray=new Array("","","fr ame1.htm","fram e2.htm")
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    Originally posted by jock1up
    I am not sure, but are the items in an array also called members?
    since an array in javascript is an object, you could call them members, but then you have to consider all members (esp. the length property). for most cases it's better to refer to the items as items.

    Originally posted by jock1up
    Not totally sure what the quotes are used for or if these are counted the same as the other 2 .htm items.
    everything between quotes is a string. if there's nothing between the quotes it's an empty string.

    Comment

    Working...