Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 1.47 KB

File metadata and controls

36 lines (24 loc) · 1.47 KB

Get the integers between two numbers

Provider Source Solutions
Codewars 598057c8d95a04f33f00004e JavaScript

Build a function that can get all the integers between two given numbers.

Example:

(2,9)

Should give you this output back:

[ 3, 4, 5, 6, 7, 8 ]

If startNum is the same as endNum, return an empty array.
If start_num is the same as end_num, return an empty array.
If start_num is the same as end_num, return an empty sequence.
If start-num is the same as end-num, set result as an empty table.