Multiply the elements of an array in JavaScript
We will be given an initial array and we have to multiply all the elements of the array with each other to find a final product. Examples: Input: arr = [1, 2, 3, 4, 5];Output: 120Explanation: 1 * 2 * 3 * 4 * 5 = 120Input: arr = [11, 12, 13, 14, 15]Output: 360360Explanation: 11 * 12 * 13 * 14 * 15 =