JS simple solution with sorting
\nvar maximumProduct = function(nums) {\n    nums = nums.sort((a,b) => a - b);\n    \n    return Math.max(nums[0] * nums[1] * nums[nums.length - 1], nums[nums.l
```\nvar maximumProduct = function(nums) {\n    nums = nums.sort((a,b) => a - b);\n    \n    return Math.max(nums[0] * nums[1] * nums[nums.length - 1], nums[nums.length - 1] * nums[nums.length - 2] * nums[nums.length - 3]);\n};\n```
['Sorting', 'JavaScript']