Sum of Two Numbers
JAVASCRIPT
Easy
+10 XP
Problem Description
Write a function `add(a, b)` that returns the sum of two numbers.
Example:
add(2, 3) → 5
add(-1, 1) → 0
add(0, 0) → 0
Example:
add(2, 3) → 5
add(-1, 1) → 0
add(0, 0) → 0
Test Cases
Input: add(2, 3)
Expected: 5
Input: add(-1, 1)
Expected: 0
Input: add(10, 20)
Expected: 30
Input: add(0, 0)
Expected: 0
Your Solution