repl.it
@isreal/

test-scores-eval-question-2

JavaScript

No description

fork
loading
main.js
1
2
3
4
5
6
7
8
9
10
// Write a function that accepts an array of test scores as an
// argument. The function should return the number of test scores that
// were an 80 or higher.
let scores = [80,81,83,72,78]
let higherScores = scores.filter(function(score) {
    return score.length >= 80;
    });
    console.log(higherScores);

  
Native Browser JavaScript
?