Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

min max value javascript

function lowest(arr) {
    let min = Number.MAX_VALUE
    for (let i = 0; i < arr.length; i++) {
        let mean = 0
        for (let j = 0; j < arr[i].length; j++) {
            mean += arr[i][j]
        }
        mean /= arr[i].length
        if (min > mean) {
            min = mean
        }
    }
    return min
}
 
PREVIOUS NEXT
Tagged: #min #max #javascript
ADD COMMENT
Topic
Name
6+2 =