Sum of object values
Given an object, return the summation of the values to be found in that object.
Sample Code:
function sumValue(obj) {
// Enter your logic here...
}
Examples:
Input: {a:1,b:2}
Output: 3
Explanation: 3 is the summation of values 1 and 2.
Input: {a:-1,b:-2}
Output: -3
Explanation: -3 is the summation of values -1 and -2.