- Adding to element to head of the List
- Getting elements by specific index
- Printing elements to the console
- Adding elements by specific index
- Removing elements from head
- Removing elements by specific index
Tests were written by using Jest Framework.
Get more information about this JavaScript Testing Framework here - Jest DOCS
Go to the project directory
cd linked-list-javascript
Install dependencies
npm init -y
npm install --save-dev jest
Start the server
node app.js
To run tests, run the following command
npm run test