const animals = ['panda', 'turtle', 'giraffe', 'hippo', 'sloth', 'human'];
const convertToBaby = animals.map((element)=>{
let newArr = [];
return newArr.push('baby '+element);
}
);
console.log(convertToBaby);
Output: [ 1, 1, 1, 1, 1, 1 ]
The expected following output: ['baby panda','baby turtule', and so on...]