repl.it
@isreal/

test-scores-eval-question

JavaScript

No description

fork
loading
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
 // 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.
function isPersonOldEnoughToDrinkAndDrive(person) {
  return Object.values(person) < 16;
    

}


var obj = {
  age: 45
};
var output = isPersonOldEnoughToDrinkAndDrive(obj);
console.log(output); // --> false
Native Browser JavaScript
?