-
-
Save codecademydev/e44bc4e65ca345a9550f08b0faca7306 to your computer and use it in GitHub Desktop.
Codecademy export
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Write your code here: | |
const convertToBaby = arr => { | |
for (let i = 0; i < arr.length; i++){ | |
let newArr = []; | |
newArr.push('baby '+ arr[i]); | |
} | |
}; | |
// When you're ready to test your code, uncomment the below and run: | |
const animals = ['panda', 'turtle', 'giraffe', 'hippo', 'sloth', 'human']; | |
console.log(convertToBaby(animals)) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment