Skip to main content

Multiply

Module Info:

moduleType: "internal",
moduleName: "multiply"

Description

The multiply function multiplies the list of numbers provided.

Inputs

NameTypeRequired
numbersToMultiplyArray<number>

Outputs

NameType
resultnumber
errorMessagestring

The errorMessage property will only be defined if any of the provided items are not numbers.

Examples

Inputs Outputs
numbersToMultiply result errorMessage
[ 4, 3, 2 ] 24 undefined
[ -1, 9 ] -9 undefined
[ 2, "bar" ] undefined "One of the arguments provided was not a number"