Easy JS Solution
\n/**\n * @param {number[]} nums\n * @return {number}\n */\nvar maximumProduct = function(nums) {\n    let sorted = nums.sort((a,b) => a-b), len = nums.length;\
```\n/**\n * @param {number[]} nums\n * @return {number}\n */\nvar maximumProduct = function(nums) {\n    let sorted = nums.sort((a,b) => a-b), len = nums.length;\n    let res1 = sorted[0]*sorted[1]*sorted[len-1],\n        res2 = sorted[len-1]*sorted[len-2]*sorted[len-3]\n    return Math.max(res1,res2);\n}; \n```
['JavaScript']