To succeed at this challenge, you'll need to demonstrate that you can do the following:
- Modify existing LinkedList class to implement a singly linked list.
You will not need to make any edits to HTML or CSS for this project.
Your goal for this checkpoint is to get the tests to pass.
To do so, you will be modifying an existing LinkedList class.
Complete the following tasks to pass the tests and this assignment.
- In the
src/linkedList.js file
, implement a singly linked list that passes the tests.
Note: The
insertAtHead
function is a new function that you will need to implement.
Once these tasks are complete, all tests should pass.