Last active
January 26, 2019 16:42
-
-
Save flexaddicted/89ccf1c5c5b50b3c6147b92fb166121b to your computer and use it in GitHub Desktop.
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
function myMap(numbers) { | |
const elements = []; | |
for(let i = 0; i < numbers.length; i++) { | |
elements.push(numbers[i].toString(10)); | |
} | |
return elements; | |
} | |
const strings = myMap([1, 2, 3, 4]); | |
console.log(strings); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment