daily pastebin goal
62%
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
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