Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 414 Bytes

File metadata and controls

20 lines (13 loc) · 414 Bytes

Return the Next Number from the Integer Passed

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


Examples:

nextNumber(0) ➞ 1
nextNumber(9) ➞ 10
nextNumber(-3) ➞ -2

Solution: