The following javascript questions may be answered with array methods. These are not limited to .forEach, .map, .filter or .reduce.
Explore MDN or w3schools to learn more.
These questions are selected from a set of exercises from a free repl.it classroom by devmakers.
To run the tests:
- Inside of the root folder, run command
npm install
to install node packages - Open
index.js
to find the javascript functions to complete - Instructions are found inside each function
- Run
npm run test
to automatically openindex.html
in a browser- After completing a function or enabling a new test, refresh the page for the test to run again
- Open
index.test.js
and remove thex
from each test suite you want to runxdescribe
(inactive) --->describe
(active)- The first test
getAllElementsButNth
is already active for you as an example
- There are multiple unit tests testing edge cases and other expectations for each function to be completed
- Active tests will be red until you complete the function
- Once you fulfill the requirements for the tests, you will see green dots, hooray!