Iteration is the repetition of a block of statements within a computer program, usually with mutable state.

Iterative functions – loop-based imperative repetitions of a process.

Example

//iterative function calculates n!

function factorialIterative(n) {
    var sum = 1;

    if (n <= 1) {
        return sum;
    }

    while (n > 1) {
        sum *= n;
        n -= 1;
    }

    return sum;
}