Return the Next Number from the Integer Passed

Published by Pickle in

Create a function that takes a number as an argument, increments the number by +1 and returns the result.

Examples

Addition(0) ➞ 1

Addition(9) ➞ 10

Addition(-3) ➞ -2

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.
Watch a quick demo on how Edabit works.