#237. Delete Node in a Linked List Write a function to delete a node (except the tail) in a singly linked list, given only access to that node. var deleteNode = function(node) { node.val = node.next.val; node.next = node.next.next; };