beginner40 minby DevFox

for, for...of, and while

Run the same lines for every item of a list with for...of, count through its indexes with for and i++, and repeat while a condition holds with while. See why i < tasks.length stops in time where <= does not, why the counter is let, and make TaskKit add several tasks in one command and print them as a numbered list.

  • TypeScript
  • Fundamentals
`for`, `for...of`, and `while`. Read this lesson at .