Create code to add two numbers together and return their sum.
Examples:
Input: a = 5, b = 3
Output: 8
Input: a = -2, b = 7
Output: 5
Input: a = 0, b = 4
Output: 4
Apex Code Editor
Welcome to Lightning Challenge!
How It Works
- • Write your solution in the code editor
- • Connect your Salesforce org to test
- • Submit to check if your solution passes
- • Use hints if you get stuck
Contest Alert
🏆 #CodeEveryDay July 2026
Contest runs July 1 - 31. Complete challenges to climb the leaderboard!
Only the 31 daily challenges shown during this contest count toward points. Earlier dailies don't carry over.