Created
July 16, 2018 06:29
-
-
Save ps0305/4e995e8234d53946650e07f01a638287 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let students = [ | |
{ | |
name: "david", | |
GPA: 3.3 | |
}, | |
{ | |
name: "sheila", | |
GPA: 3.1 | |
}, | |
{ | |
name: "Alonzo", | |
GPA: 3.65 | |
}, | |
{ | |
name: "Mary", | |
GPA: 3.8 | |
} | |
] | |
let admitted = students.filter(function(student){ | |
return student.gpa > 3.2; | |
}) | |
/*admitted = [ | |
{ | |
name: "david", | |
GPA: 3.3 | |
}, | |
{ | |
name: "Alonzo", | |
GPA: 3.65 | |
}, | |
{ | |
name: "Mary", | |
GPA: 3.8 | |
} | |
];*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment