# E0125: missing header and body for 'for' loop

It is a syntax error to write a `for` loop without a header (in parentheses) or a body:

    for let i = 1; i < 100; ++i
    {
      console.log(i % 15 ? i : "FizzBuzz");
    }

To fix this error, put parentheses around the `for` loop's header:

    for (let i = 1; i < 100; ++i)
    {
      console.log(i % 15 ? i : "FizzBuzz");
    }

Introduced in quick-lint-js version 0.2.0.

Documentation for other errors