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

2905Re: skipping for loop parameters

Expand Messages
  • douglascrockford
    Jun 26 6:27 PM
      --- 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.
    • Show all 4 messages in this topic