Javascript - Simple using filter
\nvar sortArrayByParityII = function(A) {\n    let evenNums = A.filter((i) => i % 2 === 0);\n    let oddNums = A.filter((i) => i % 2 !== 0);\n    \n    let res 
```\nvar sortArrayByParityII = function(A) {\n    let evenNums = A.filter((i) => i % 2 === 0);\n    let oddNums = A.filter((i) => i % 2 !== 0);\n    \n    let res = [];\n    for (let i = 0; i < A.length / 2; i++) {\n        res.push(evenNums[i], oddNums[i]);\n    }\n    \n    return res;\n};\n```\n\nStats:\nRuntime: 100 ms, faster than 88.97% of JavaScript online submissions for Sort Array By Parity II.\nMemory Usage: 44.3 MB, less than 12.50% of JavaScript online submissions for Sort Array By Parity II.
['JavaScript']