Friday, September 28, 2018

JavaScript Map Function

How does JavaScript Map Function work....

Here is an example

var numbers = [4, 9, 16, 25];

function myFunction() {
    x = document.getElementById("demo")
    x.innerHTML = numbers.map(Math.sqrt);
}

If I execute the above function as part of my Javascript it print

2,3,4,5

So what happened using map function I applied the Math.sqrt to every element of my numbers array.

33 comments:

Unknown said...

myTectra Placement Portal is a Web based portal brings Potentials Employers and myTectra Candidates on a common platform for placement assistance

Divya M said...

I am really happy with your blog because your article is very unique and powerful for new reader.
Click here:
selenium training in chennai
selenium training in bangalore
selenium training in Pune
selenium training in pune
Selenium Online Training

sudha P said...

I think you have a long story to share and i am glad after long time finally you cam and shared your experience.

Java training in Bangalore | Java training in Marathahalli | Java training in Bangalore | Java training in Btm layout

Java training in Bangalore | Java training in Marathahalli | Java training in Bangalore | Java training in Btm layout

Nila shri said...

Just stumbled across your blog and was instantly amazed with all the useful information that is on it. Great post, just what i was looking for and i am looking forward to reading your other posts soon!
Data Science Training in Chennai | Data Science Training institute in Chennai | Data Science course in anna nagar

Data Science course in chennai | Data Science Training institute in Chennai | Best Data Science Training in Chennai | Data science course in Bangalore | Data Science Training institute in Bangalore | Best Data Science Training in Bangalore

Data Science course in marathahalli | Data Science training in Bangalore | Data Science course in btm layout | Data Science training in Bangalore


gkr ragini said...

Really very nice blog information for this one and more technical skills are improve,i like that kind of post.
Devops Training courses
Devops Training in Bangalore
Best Devops Training in pune
Devops interview questions and answers

Mouni yoga said...

You got an extremely helpful website I actually have been here reading for regarding an hour. I’m an initiate and your success is incredibly a lot of a concept on behalf of me.
python course in pune
python course in chennai
python course in Bangalore

yamuna said...

Your very own commitment to getting the message throughout came to be rather powerful and have consistently enabled employees just like me to arrive at their desired goals.
angularjs interview questions and answers

angularjs Training in bangalore

angularjs Training in bangalore

angularjs Training in chennai

automation anywhere online Training

Rajesh said...

Very Nice Blog

tejaswini said...

Nice information thanks for sharing

reliaable residenza

Unknown said...

Thanks for sharing such a valuable information sap institute in Hyderabad

vimal kumar said...

Whoa! I’m enjoying the template/theme of this website. It’s simple, yet effective. A lot of times it’s very hard to get that “perfect balance” between superb usability and visual appeal. I must say you’ve done a very good job with this.
Devops Training in bangalore
Digital Marketing Training in bangalore
Data Science Training in bangalore
Java Training in bangalore

Amy Wong said...

Hi I want to talk about one site fantastic free slots there I spend all my free time there I spend all my free time and get a small income

jorick228 said...

become a new player in the casino good internet casino gambling I understood, I understood that on this site, luck will smile at me

Anonymous said...

The post was really very good.Thanks for sharing
prestige elysian

Unknown said...

Very good information. we need learn with real time examples and for this we choose good training institute, we need to know about java and J2EE which is quite interesting. We need a good training institute for my learning .. so people making use of the free demo classes.
Many training institute provides free demo classes. One of the best training institute in Bangalore is Apponix Technologies.
https://www.apponix.com/Java-Institute/Java-Training-Institute-in-Bangalore.html

Unknown said...


Thank you so much for posting this. I really appreciate your work. Keep it up. Great work!Best software training company with placement in Hyderabad

Jagadeesh said...

Thank you very much for sharing this great post.
learn digital academy offers, Advanced Digital Marketing Master Course in Bangalore.
intense in-class training program, practically on Live Projects.

jefrin adams said...


Thanks a lot very much for the high quality and results-oriented help. I won’t think twice to endorse your blog post to anybody who wants and needs support about this area.
python training chennai|python training institute in chennai

karthick said...

This is Very Useful blog, Thank you to Share this.
Best Python Training Institute in Chennai

Shanthi Cabs said...

Amazing article. Your blog helped me to improve myself in many ways thanks for sharing this kind of wonderful informative blogs in live. I have bookmarked more article from this website. Such a nice blog you are providing ! Kindly Visit Us @ Best Travels in Madurai | Tours and Travels in Madurai | Madurai Travels

Aaditya said...

Such an informative and helpful, Thank you for sharing this wonderful post.


ExcelR Data Science Course Bangalore

zaintech99 said...

I definitely enjoying every little bit of it and I have you bookmarked to check out new stuff you post.
data science courses training
data analytics certification courses in Bangalore
ExcelR Data science courses in Bangalore

janitha said...

This is a great article thanks for sharing this informative information. I will visit your blog regularly for some latest post. I will visit your blog regularly for Some latest post.
data science course malaysia

istiaq ahmed said...

I am genuinely thankful to the holder of this web page who has shared this wonderful paragraph at at this place
Data Science Course in Pune

Priyanka said...

Attend The Python training in bangalore From ExcelR. Practical Python training in bangalore Sessions With Assured Placement Support From Experienced Faculty. ExcelR Offers The Python training in bangalore.
python training in bangalore

lucy88 said...

Really nice and interesting post. I was looking for this kind of information and enjoyed reading this one. Keep posting. Thanks for sharing.
Data Science Courses

data science analytics rakshi said...

Excellent Blog! I would like to thank for the efforts you have made in writing this post. I am hoping the same best work from you in the future as well. I wanted to thank you for this websites! Thanks for sharing. Great websites!digital marketing course in singapore

Pythonclassesinpune said...

I am looking for and I love to post a comment Python classes in punethat "The content of your post is awesome" Great work!

jaanu said...

Awesome blog. I enjoyed reading your articles. This is truly a great read for me. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work!
ir 4.0 training in malaysia

Hadoop Training said...

I Got Job in my dream company with decent 12 Lacks Per Annum salary, I have learned this world most demanding course out there in the current IT Market from the python training in pune experts who helped me a lot to achieve my dreams comes true. Really worth trying.

Priyanka said...

Attend The Data Science Courses in Bangalore From ExcelR. Practical Data Science Courses in Bangalore Sessions With Assured Placement Support From Experienced Faculty. ExcelR Offers The Data Science Courses in Bangalore.
ExcelR Data Science Courses in Bangalore

seoexpert said...

Nice Post...I have learn some new information.thanks for sharing.
Click here for ExcelR Business Analytics Course

rajeev said...

Oracle Apps R12 and Fusion Cloud Self Paced Training Videos by Industry Experts. Please Check https://www.oracleappstechnical.com