Problem

Return product of all elements.

Examples

  • productAll([2, 3, 4]) -> 24
  • productAll([]) -> 1
Compile and test (Ctrl+Enter)