Write a js program to create a function. The program has a function which calculates the first ten multiples of all the numbers, starting from 1 till the given number, and r