Easy js solution
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```javascript []\n/**\n * @param {string} num\n * @return {boolean}\n */\nvar isBalanced = function (num) {\n    let even = 0\n    let odd = 0\n    for (let i = 0; i < num.length; i++) {\n        if (i % 2 == 0) {\n            even += parseInt(num[i])\n        }\n    }\n    for (let i = 0; i < num.length; i++) {\n        if (i % 2 !== 0) {\n            odd += parseInt(num[i])\n        }\n    }\n\n    return odd === even\n};\n```
['JavaScript']