JS/TS Easy Solution and Understandable 2 line 🚀🚀🚀
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nconst maxProductDifference = (nums: number[]): number => {\n  nums.sort((a, b) => a - b); //sort the number array\n  return nums.pop() * nums.pop() - nums.shift() * nums.shift(); //get two maximum and two minimum number and apply operation\n};\n```
['TypeScript', 'JavaScript']