Can someone explain me the Syntax of a for-loop
like "for (;;)"
what i need to know is whether the header of a for-loop
like "for (;;)"
is having empty-statements
or not.
I searched the ECMAScript specification about what will happen if all the optional expressions within the for-loop's
header is skipped like for (;;)
in the specification but i still didnt find about it
can someone explain me about this even the specification haven't mentioned that a for-loop
like for (;;)
loops/runs infinite times
and i need to know one last thing why people call the header of a for-loop
is having Expression's
i see that the syntax of a for loop allows us to write declarations like var i = 0
in the header of the for-loop
and i see the for-loops
syntax allows us to write semicolons ;
in its header only statements require semicolons
does that mean all the syntax within the for-loop's
header is having Statements