This is a very simple JavaScript exam to make you feel comfortable with arrays, strings, objects and JavaScript in general. For now, it has only two levels. Level-1 and Level-2.
This level is about basic array manipulation, basic knowledge of objects and strings.
This level dives a little deeper into objects, how to work with their properties and cloning them.
To pass each level and all its test cases, you need to write the body of four functions that are already defined in each of the
index.js
files so all tests in the terminal appear green. Instructions for what each function should do is written above each function inside theindex.js
file for each level.
To start taking the test:
git clone https://github.com/MustansirZia/js-test
.
cd js-test && npm install
(oryarn
).
npm start <LEVEL>
(oryarn start <LEVEL>
). For example, to start completing level-1 enternpm start level-1
and so on. To complete all tests at once, simply enternpm start
and all test cases for all levels will be run at once.
- The test suite is now running in the terminal.
- Make changes inside the corresponding
index.js
file to make all the test cases pass for that level.
Note - We'll automatically be watching any changes to index.js
and the test cases will rerun with every save to index.js
files. Also note that you can use whichever ECMAScript version you like depending upon the version of your node.js.
• Please feel free to add more levels as PRs. Cheers!
• MIT.