simple JavaScript solution for beginners 2 line
*Bold*# 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\
# ****Bold**# 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```\n/**\n * @param {number} num\n * @return {number}\n */\nvar minimumSum = function (num) {\n\n    const arr = num.toString().split(\'\').sort()\n    return parseInt(arr[0] + arr[2]) + parseInt(arr[1] + arr[3])\n\n\n};\n```
['JavaScript']