JS Assignment 16: Using Callbacks in Array Methods
kkleiman90 (1)

I have gotten to the last exercise of the last assignment in the precourse work for Web Development for Lambda and I am stuck. I am relatively new to the world of programming and after spending two days trying to figure this out on my own, I need some help!

function exerciseTwo(cents){

// Exercise Two: In this exercise you will be given an array called 'cents'
// This array is a list of prices, but everything is in cents instead of dollars.
// Using the map method, divide every value by 100 and save it as a new array 'dollars'

// Please write your answer in the lines above.
return dollars;
}

You are viewing a single comment. View All
Answered by heyitsmarcus (287) [earned 5 cycles]
View Answer
kkleiman90 (1)

@heyitsmarcus thank you so much! The map method is difficult for me to wrap my head around for some reason.