const MAX_LENGTH = 10;

/**
 * @param {number[]} vector 
 */
function MinMaxInteractive(vector){
    let min = max = vector[0];

    vector.forEach(value => {
        if (value > max) max = value;
        if(value < min) min = value;
    });

    return {
        min, 
        max
    }
}

function main(){
    let vector = [];
    let values = "[";
    for (let index = 0; index < MAX_LENGTH; index++) {
        let value = Math.floor(Math.random() * 99);  // 0 - 99
        vector.push(value);
        values += `${value}, `;
    }
    values += "]"

    console.log(values);
    const result = MinMaxInteractive(vector);
    console.log(`Min: ${result.min}\nMax: ${result.max}`);
}

main();
@@ -62,38 +62,36 @@
 function MinMaxI
-n
 tera
-c
 tive(vector)%7B%0A  
@@ -600,14 +600,12 @@
 MaxI
-n
 tera
-c
 tive

fix name function