While testing a JS linked list class i have this weird error: i can delete the node at index but when i test to verify the next node is null as it\'s supposed to be if delet