Add currentNode variable to Remove Element from a linked list (#25131)

This commit is contained in:
Hoang Huy Phi 2018-10-23 14:24:32 +11:00 committed by Randell Dawson
parent 6c680b1ac2
commit a41806a28d

View File

@ -46,7 +46,7 @@ tests:
function LinkedList() {
var length = 0;
var head = null;
var currentNode = null;
var Node = function(element){
this.element = element;
this.next = null;