The for loop is a loop that iterates over a period of time. The for loop counts from one to ten, and prints the number at each iteration. Then, you can use the if statement to test if the number is greater than ten or lower than six. In either case, the for loop will continue, but it will eventually end.
The second feature of the promise is the ability to chain operations. In a simple example, you can use it to display information about a specific user or group.