10 XP challenge
Multiply the Supplied Factors
easy
Build it yourself · 6 min
1 Learn2 Predict3 Solve
TaskYour mission
Return the product of all numbers. The product of an empty list is 1. numbers contains 0 to 8 integers from -5 to 5.
Examples
| Input | Return |
|---|---|
numbers = [2,3,4]product: 1 → 2 → 6 → 24. The result is 24. | 24 |
numbers = [-2,3]product: 1 → -2 → -6. The result is -6. | -6 |
Your code
Write your answer inside Solution, then use return to send it back.
Ln 1, Col 1
JavaScript
Try examples runs the public examples. Check my code checks your full answer and saves your completion.