SHARE
TWEET

Untitled

a guest Aug 20th, 2017 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var myArray = ['Bobby', 'Jack', 'Danny'];
  2. var favCities = ['Atlanta', 'Miami'];
  3.  
  4. function listFirst(array) {
  5.   return array[0];
  6. }
  7.  
  8. console.log(listFirst(myArray));
  9.  
  10. console.log(listFirst(favCities));
RAW Paste Data
Top