Essential JavaScript

Number Range Kata

Create an array containing the numbers in the given range, from start to end.

It is possible for end to be greater than or less than start.

If start and end are equal, return an array containing that single value.

Code Editor