Skip to content

Tech-at-DU/map-filter-reduce-practice

 
 

Repository files navigation

Array Methods Practice Challenges

Challenge 1 - Map, Filter, Reduce

Map, reduce and filter are all array methods that perform transofrmation or computations. Check out this tweet explaining their implementation with emojis.

Challenge 2 -

slice, splice, find, includes, indexOf, pop, push, reverse, shift, unshift

Instructions

  1. Clone the Repository to your computer.
  2. Run git remote remove origin to disconnect from the class repo. Also, run npm install to install any necessary packages included in package.json.
  3. Go to GitHub and create a new repository for your code (do not initialize with a README). Follow the instructions to add a new remote called 'origin' to your new repository.
  4. Navigate to each of the two Challenge files - challenges1.js and challenges2.js - and follow the instructions before each practice activity.
  5. The data from the People dataset and Instruments dataset - people.js and instruments - is stored as an array of objects. Each object in the array has the same fields with different values.

Running Your Code

  • From the root directory, run all the challenges with:
    npm test
  • To run a specific challenge file

For challenge 1:

    npm run challenge1

For challenge 2:

    npm run challenge2

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%