aaaaa

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
a
let notas = [6, 9, 7, 5, 1, 5, 4];

function menorNota() {
    var min = Math.min(...notas) 
    console.log(min)
}
menorNota()
ready
b
let notas = [6, 9, 7, 5, 1, 5, 4];
 
function menorNota() {
    let menor = notas[0];
    
    for (let nota of notas) {
        if (nota < menor) {
            menor = nota;
        }
    }
    
    console.log(menor);
}
menorNota()
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.