 Check Balanced String
IntuitionApproachComplexity
Time complexity:

Space complexity:
Code
# Intuition
<!-- Describe your first thoughts on how to solve this problem. -->

# Approach
<!-- Describe your approach to solving the problem. -->

# Complexity
- Time complexity:
<!-- Add your time complexity here, e.g. $$O(n)$$ -->

- Space complexity:
<!-- Add your space complexity here, e.g. $$O(n)$$ -->

# Code
```javascript []
/**
 * @param {string} num
 * @return {boolean}
 */
var isBalanced = function(num) {

    const values = num.split('')
    let eventCount= 0
    let OddCount=0
    for(let i=0 ; i < values.length ; i++){
        if(i%2 ==0){
            eventCount= eventCount+parseInt(values[i])
        }else{
            OddCount= OddCount+parseInt(values[i])
        }
    }

    return OddCount==eventCount
};
```
['JavaScript']