JavaScript Array Methods: map()

Опубликовано: 01 Июнь 2025
на канале: Treehouse
788
24

We offer free trials - learn JavaScript with us! https://trhou.se/3TKWrwB
Still using a for loop to iterate over a collection of array elements? In this quick guide, Dustin goes over an array method known as map() that has a more straightforward syntax than the standard for loop and some extra features. Follow along to learn how and when to use the map() array method.
Start your free trial to learn more! https://trhou.se/3TKWrwB

Blog article:
https://trhou.se/3UJ4fjz

Resources:
MDN - toUpperCase() https://trhou.se/3AnIFca
MDN - map() https://trhou.se/3EnSats

Chapters:
0:00 Intro
0:33 MDN documentation for map()
2:43 Setting text editor up for practicing map()
3:11 Practice using map()
6:00 Outro

#javascript #html

Learn how to build websites and apps, write code, or start a business at Treehouse. Learn from over 1,000 videos created by our expert teachers on web design, coding, business, and much more. Treehouse teaches the in-demand technology skills you need to land your dream job.

Follow Us!
Twitter:   / treehouse  
Instagram:   / teamtreehouse  
LinkedIn:   / treehouse-island-inc-  
Facebook:   / teamtreehouse