Search:

Type: Posts; User: pbrockway2

Search: Search took 0.09 seconds.

  1. Replies
    6
    Views
    2,177

    Re: Missing elements in array

    Yes, 2 is the number of elements that commands contains. They happen to be arrays. Specifically the elements are:

    the array ["commands", "new", "ls"]

    and the array [" - Lists current...
  2. Replies
    6
    Views
    2,177

    Re: Missing elements in array

    The for loop does what you'd expect - it increments until the condition part becomes false.

    What you didn't do in your debugging code was print the actual array length you are using:...
  3. Replies
    6
    Views
    2,177

    Re: Missing elements in array

    The output you posted suggests that you are going around the loop two times while I imagine that you want to go around the loop three times.

    It is important to bear in mind that three are three...
Results 1 to 3 of 3