JavaScript faster than 99.8% | simple/easy solution
\nlet middleNode = function(head) {\n    let targetLen = Math.ceil(getLength(head)/2);\n    return returnAtPosition(head, targetLen);\n};\n\nlet getLength = fun
```\nlet middleNode = function(head) {\n    let targetLen = Math.ceil(getLength(head)/2);\n    return returnAtPosition(head, targetLen);\n};\n\nlet getLength = function(node) {\n    let length = 0;\n    while(node.next) {\n        length += 1;\n        node = node.next;\n    }\n    return length;\n};\n\nlet returnAtPosition = function(node, targetLen) {\n    for(let i = 0; i < targetLen; i++) {\n        node = node.next;\n    }\n    return node;\n};\n```
['JavaScript']