My goal is to write explanations on coding concepts for beginners w/o prior coding background, along with sharing Sailor Moon references wherever I can 😅✨
It is also possible to omit the statement(s) to run, and do all processing purely in the expressions. If you do this however, you must follow the closing bracket of the loop conditions with a semicolon (one of the few cases in JS where the semicolon is mandatory)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
It's worth pointing out that the expressions can be omitted. For example, you could make a
for
loop run for 5 seconds, then end:Or, run until some external process is complete:
Or, run forever (probably not advisable):
Interesting, thanks for that! Learning something new every day!
It is also possible to omit the statement(s) to run, and do all processing purely in the expressions. If you do this however, you must follow the closing bracket of the loop conditions with a semicolon (one of the few cases in JS where the semicolon is mandatory)