Create a function that takes a number as an argument, add one to the number, and return the result.
Examples
addition(0) ➞ 1
addition(9) ➞ 10
addition(-3) ➞ -2
Notes
- Do not test for overflow.
- 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.