So in Iterators, the .map
method. I got to the final part of the lesson and my code prints fine, Had to divide the array of numbers by 10 using the .map
method, is this probably a bug or am I missing something? It works with console.log()
but won’t let me pass the course. Any suggestions?
Thanks so much for your time, I am NEW to the forum and Codecademy for that matter so any help and guidance is awesome!
const bigNumbers = [100, 200, 300, 400, 500];
// Create the smallNumbers array below
const smallNumbers = bigNumbers.map(bigNumbers => {
return bigNumbers / 10;
});
console.log(smallNumbers)
Also here is the link: https://gist.github.com/246b1fdb5f90769ad5ea52887e64eebe
Thanks again for your time and sorry about the long post but I’m just a little frustrated because I think I got it but it’s not registering haha
p.s. let me know if I should change anything about how I posted because like I said I’m rather new and don’t want to be a bother next time I post, cheers!