SyntaxStudy
Sign Up

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

Test Cases

1
Input: add(2, 3)
Expected: 5
2
Input: add(-1, 1)
Expected: 0
3
Input: add(10, 20)
Expected: 30
4
Input: add(0, 0)
Expected: 0
Your Solution