SOURCE

function ListNode(val, next) {
    this.val = val === undefined ? 0 : val;
    this.next = next === undefined ? null : next;
}


function deleteNode(node){
    node.val = node.next.val;
    node.next = node.next.next;
}
console 命令行工具 X clear

                    
>
console