Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Dado el array "people" que figura, itéralo e incluye en un nuevo array de nombre "admitted" aquellas personas que tengan una nota igual o superior a 5, y que midan más de 1.70 metros:
- */
- var people = [
- {
- name: 'John',
- score: 5.2,
- hobbies: 'sports',
- height: 1.80
- },{
- name: 'Mary',
- score: 9,
- hobbies: 'programming',
- height: 1.60
- },{
- name: 'Susan',
- score: 2.9,
- hobbies: 'gaming',
- height: 1.42
- },{
- name: 'Eric',
- score: 5,
- hobbies: 'nature',
- height: 1.81
- },{
- name: 'Linda',
- score: 5,
- hobbies: 'programming',
- height: 1.71
- }
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement