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 tengan entre sus hobbies programar
- */
- var people = [
- {
- name: 'John',
- score: 5.2,
- hobbies: 'sports'
- },{
- name: 'Mary',
- score: 9,
- hobbies: 'programming'
- },{
- name: 'Susan',
- score: 2.9,
- hobbies: 'gaming'
- },{
- name: 'Eric',
- score: 5,
- hobbies: 'nature'
- },{
- name: 'Linda',
- score: 5,
- hobbies: 'programming'
- }
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement