Https://www.codecademy.com/courses/introduction-to-javascript/lessons/javascript-iterators/exercises/map?action=resume_content_item


#1

const animals = [‘Hen’, ‘elephant’, ‘llama’, ‘leopard’, ‘ostrich’, ‘Whale’, ‘octopus’, ‘rabbit’, ‘lion’, ‘dog’];

// Create the secretMessage array below
const secretMessage = animals.map(animal => animal[0]);

console.log(secretMessage.join(’’));

const bigNumbers = [100, 200, 300, 400, 500];

// Create the smallNumbers array below
const smallNumbers = bigNumbers.map(num => num/100);

console.log(smallNumbers)

I want to understand where did num come from?
https://www.codecademy.com/courses/introduction-to-javascript/lessons/javascript-iterators/exercises/map?action=resume_content_item


#2

Nice questions. The small numbers divides the big numbers from 100 makes 1, 2,3,4,5.

I hope this helps =)