← Back to challenges

Return the Next Number from the Integer Passed

JavaScriptEasymathnumbersalgebra

Instructions

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
javascript
Loading editor…
to run
Walks through the solution with reasoning and edge cases.