Which of the following methods can be used to remove the last node in a singly linked list?
pop()
shift()
delete()
Traverse through the list and set the second-last node’s next pointer to null
This question is part of this quiz :
JavaScript Linked List