I’m trying to find the secretMessage, which I understand is found by taking the first character in each string of the array.

I copied the code in the example:

let numbers = [1, 2, 3, 4, 5];

let bigNumbers = numbers.map(function(number) {

return number * 10;

});

My code looks like the example by returns and error. What am I doing wrong?

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

let secretMessage = (function(charAt(0))

{

return charAt[0];

});

THE ERROR MESSAGE:

let secretMessage = (function(charAt(0))

^