Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getLast test clears until running getAt test - checked code from completed exercises, no help #24

Open
dfrho opened this issue Jun 27, 2018 · 0 comments

Comments

@dfrho
Copy link

dfrho commented Jun 27, 2018

● GetAt › returns the node at given index

TypeError: Cannot set property 'next' of null

  79 |     let lastNode = this.getLast()
  80 |     let newNode = new Node(data)
> 81 |     lastNode.next = newNode
     |     ^
  82 |   }
  83 |
  84 |   getAt(index) {

  at LinkedList.insertLast (linkedlist/index.js:81:5)
  at Object.test (linkedlist/test.js:155:7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant