The for loop is the most commonly used loop in JavaScript. We use it when we know in advance how
many times we want to execute a certain block of code. It consists of three parts: the initial value (counter), the
condition, and the step (increment).