Guest User

Untitled

a guest
Apr 25th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. let animals = ['Hen', 'elephant', 'llama', 'leopard', 'ostrich', 'Whale', 'octopus', 'rabbit', 'lion', 'dog'];
  2.  
  3. // Create the secretMessage array below
  4. let secretMessage = animals.map(function(word) {
  5. return word[0];
  6. });
  7.  
  8. console.log(secretMessage.join(''));
  9.  
  10. let bigNumbers = [100, 200, 300, 400, 500];
  11.  
  12. // Create the smallNumbers array below
  13. let smallNumbers = bigNumbers.map(numbers => numbers/100);
  14.  
  15. console.log(smallNumbers);
Add Comment
Please, Sign In to add comment