I want to know if it is possible to make a method that takes two integer values as parameters and returns them and all the numbers between then in an array.
So for example if my method is
function getNumberRange(first, last)
And i call it
getNumberRanger(10, 13)
Is there a way for me to have the answer returned as the following array value
[10, 11, 12, 13]
Thanks in advance and sorry if this is badly worded.