Loading ...
Sorry, an error occurred while loading the content.

Re: skipping for loop parameters

Expand Messages
  • douglascrockford
    ... Right. If all you need is a condition, use while. And don t get too tricky.
    Message 1 of 4 , Jun 26, 2012
    • 0 Attachment
      --- In jslint_com@yahoogroups.com, Joe Martin <joe.martin@...> wrote:
      > I just
      > want to know if for loops are supposed to be either all parameters or no
      > parameters. Skipping the initializer causes an error too (which causes an
      > issue if you need to initialize out of the loop.)

      Right. If all you need is a condition, use while. And don't get too tricky.
    Your message has been successfully submitted and would be delivered to recipients shortly.