SHARE
TWEET

Untitled

a guest Oct 14th, 2019 138 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.   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:
  3. */
  4.  
  5. var people = [
  6.   {
  7.     name: 'John',
  8.     score: 5.2,
  9.     hobbies: 'sports',
  10.     height: 1.80
  11.   },{
  12.     name: 'Mary',
  13.     score: 9,
  14.     hobbies: 'programming',
  15.     height: 1.60
  16.   },{
  17.     name: 'Susan',
  18.     score: 2.9,
  19.     hobbies: 'gaming',
  20.     height: 1.42
  21.   },{
  22.     name: 'Eric',
  23.     score: 5,
  24.     hobbies: 'nature',
  25.     height: 1.81
  26.   },{
  27.     name: 'Linda',
  28.     score: 5,
  29.     hobbies: 'programming',
  30.     height: 1.71
  31.   }
  32. ]
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top