Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
- }
- ];*/
Add Comment
Please, Sign In to add comment