Write a program in JavaScript to find the sum of 10 numbers using function