Posts by Adriano Guimarães • 1 point
1 post
-
-2
votes5
answers9010
viewsA: How do I multiply an array within a function in JS?
PROBLEM: We need a product function that takes an array of numbers and returns the product: the result of multiplying all the elements among themselves. For example, product([1, 4, 7]) should return…