Return the sum of two integers.
Input: sum(2, 3)
Output: 5
Input: sum(-4, 4)
Output: 0
Your solution is checked against 2 example tests and 3 hidden tests (edge cases and bigger inputs).
Languages you don't learn in class are worth more: C++ 1.25×, JavaScript, TypeScript, C, Rust and Go 1.5×. Your first solve in a language unlocks its "Learned" achievement: +25 for learning it.
Loading editor...
Run Code checks the example tests. Submit runs every test, including hidden ones.