DocsJavaScriptControl FlowThe for LoopThe for loop repeats code a set number of times. It's perfect for counting and for going through arrays.Lesson 15 of 32PreviousNextPreviousThe switch StatementNextwhile and do...while Loops