Multiplication table
Return a multiplication table of the given number in an array.
Make sure there are only 5 elements in the array.
Sample Code:
function timesTable(num) {
// Enter your logic here...
}
Examples:
Input: 7
Output: [7,14,21,28,35]
Explanation: Returned is the first five multiples of 7.
Input: 10
Output: [10,20,30,40,50]
Explanation: Returned is the first five multiples of 10.