Counting steps
Return an Array of numbers starting with 1 up to the given number. Round up the number if the given number has decimal places.
Sample Code:
function myLegHurts(num) {
// Enter your logic here...
}
Examples:
Input: 10
Output: [1,2,3,4,5,6,7,8,9,10]
Explanation: Each numbers have been increased by 1 up to number 10.
Input: 5.5
Output: [1,2,3,4,5,6]
Explanation: Each numbers have been increased by 1 up to number 6.