It is in the name, and it is a function. In this case, it is a function that you have to call. This is what a function is, and you should never forget that word.
While I don’t think it’s a bad thing to have a function that you can call, calling functions can cause problems for some. Many programmers tend to use functions in loops, because there are times when your code doesn’t work in a loop, or it works in a loop but it does not do what you intended.
For example, in the following code, I have the `return` in the for loop and I am not sure if I want it or not.
The correct syntax is for any function, not just the ones you are currently using. So in the example above, the return statement is not needed.
The reason for this is that there are a lot of functions that don’t return. For example, if you are using a for loop to count how many times a certain variable is used and want to make sure you stop when the variable is used, you should instead use a function.
The second function we discuss is the jQuery one you see a lot if you’ve played around with JS a bit. This is a function that is used to loop through the DOM.
There is one more function we need to discuss. We are going to use an array because a for loop does not return any values. But a for loop is not a function. It is a statement that contains code. That code is executed each time the for loop is iterated through. If you are familiar with functions, this is a common way to use them. But like most other ways to use functions we want to use arrays for this function.
A for loop takes a variable and returns the value of that variable. The variable is not passed to the function as an argument.