javascript
\nvar middleNode = function(head) {\n    let slow = head, fast = head\n    while(fast !== null && fast.next !== null){\n        slow = slow.next\n        fast =
```\nvar middleNode = function(head) {\n    let slow = head, fast = head\n    while(fast !== null && fast.next !== null){\n        slow = slow.next\n        fast = fast.next.next\n    }\n    return slow\n};\n```
[]