An open API service indexing awesome lists of open source software.

https://github.com/leta91/use-map-method-to-extract-data-from-array

Use the map Method to Extract Data from an Array in JavaScript - freeCodeCamp Challenge
https://github.com/leta91/use-map-method-to-extract-data-from-array

Last synced: about 1 month ago
JSON representation

Use the map Method to Extract Data from an Array in JavaScript - freeCodeCamp Challenge

Awesome Lists containing this project

README

        

# Use the map Method to Extract Data from an Array 🎯 freeCodeCamp Challenge
## Part 8 of the JavaScript Algorithms & Data Structures Certification βœ…
### Functional Programming Chapter ➑️ Challenge number 7 out of 24

- The `watchList` array holds objects with information on several movies ("Inception" πŸ’­, "Interstellar" 🌌, "The Dark Knight" πŸ¦Έβ€β™‚οΈ, "Batman Begins" πŸ¦‡, "Avatar" πŸ§žβ€β™€οΈ)
- Use `map` on `watchList` to assign a new array of objects to the `ratings` variable
- Each movie in the new array should have only a `title` key with the name of the film, and a `rating` key with the IMDB rating
- The code in the editor currently uses a `for` loop to do this, so you should replace the loop functionality with your `map` expression