Add Two Numbers
Given the first input n1 and second input n2, calculate the sum of n1 + n2 and return the sum.
Sample Code:
function sum(n1, n2) {
// Enter your logic here...
}
Examples:
Input: n1=1, n2=1
Output: 2
Explanation: The sum of 1 and 1 equals to 2
Input: n1=2, n2=-2
Output: 0
Explanation: The sum of 2 and -2 equals to 0