← Back to challenges

Return the Sum of Two Numbers

JavaScriptEasyalgebramathnumberslanguage_fundamentals

Instructions

Create a function that takes two numbers as arguments and returns their sum.

Examples

addition(3, 2) ➞ 5

addition(-3, -6) ➞ -9

addition(7, 3) ➞ 10

Notes

  • Don't forget to return the result.
  • If you get stuck on a challenge, find help in the Resources tab.
  • If you're really stuck, unlock solutions in the Solutions tab.
javascript
Loading editor…
to run
Walks through the solution with reasoning and edge cases.
Next: Convert Minutes into Seconds