Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let animals = ['Hen', 'elephant', 'llama', 'leopard', 'ostrich', 'Whale', 'octopus', 'rabbit', 'lion', 'dog'];
- // Create the secretMessage array below
- let secretMessage = animals.map(function(word) {
- return word[0];
- });
- console.log(secretMessage.join(''));
- let bigNumbers = [100, 200, 300, 400, 500];
- // Create the smallNumbers array below
- let smallNumbers = bigNumbers.map(numbers => numbers/100);
- console.log(smallNumbers);
Add Comment
Please, Sign In to add comment