JavaScript JavaScript Loops, Arrays and Objects Simplify Repetitive Tasks with Loops A Closer Look at Loop Conditions

2 Answers

Steven Parker
Steven Parker
194,902 Points

"Counter" is not a language keyword. But it is "best practice" to choose variable names that relate to the purpose the variable is used for, so this is a good example of a well-chosen variable name.

It was a variable name. Choosing a variable name that matches the action performed is best practice.