← Practice
Fundamentals·easy 10 min 50 XP

Sum Two Numbers

Return the sum of two numbers passed as arguments.

Examples

  • sumTwoNumbers(2, 3) → 5
  • sumTwoNumbers(-1, 1) → 0

Constraints

  • Keep the required function name so the tests can find it
  • Return a value instead of only logging it
  • Do not mutate inputs unless the challenge asks you to
Sum Two Numbers · editor

Code runs in an isolated Web Worker with a 3-second timeout — no DOM access, and it can never hang the page.