logo
Search
showing results for - "javascript array methods map 28 29"
Sara
01 Nov 2017
1let numbers = [1, 2, 3, 4, 5];
2let doubles = numbers.map(number => number * 2)
3console.log(doubles)
4// --> [ 2, 4, 6, 8, 10 ]
source
similar questions
javascript map functionjs array map map in jsfunctions in map javascriptjavascript map arraymap function javascripthow does map works in javascript 3farray map javascripthow to use the map method in javascripthow the map function works javascriptarray mapjavascript mapjavascript array map 28 29 method in detailmap in an arrayarray mdn map
queries leading to this page
js array maphow does array map work map arraygiven an array with the method map 28 29javascript array methods map 28 29
privacy policyterms of useinstagram
Crafted with  ♥  for everyone

sign in to continue
your answer for
you will get a confirmation link on this - you will have to click that for successful submission of your answer. we require this to keep the website free of spam, bots and unhelpful content
please ensure to add code which is syntactically corrent and executes properly
sign in to continue
ask question on maxinterview
you will get a confirmation link on this - you will have to click that for successful submission of your question. we require this to keep the website free of spam, bots and unhelpful content
please be clear, to the point and respectful
sign in to continue