Skip to main content

Math

sum(array)#

Computes the sum of the values in array.

Arguments
array (array): The array to iterate over.

Returns
(string): Returns the sum.

min(array)#

Computes the minimum value of array.

Arguments
array (array): The array to iterate over.

Returns
(string): Returns the minimum value.

max(array)#

Computes the maximum value of array.

Arguments
array (array): The array to iterate over.

Returns
(string): Returns the maximum value.

add(augend, addend)#

Adds two numbers.

Arguments
augend (number): The first number in an addition. addend (number): The second number in an addition.

Returns
(number): Returns the total.

substract(minuend, subtrahend)#

Subtract two numbers.

Arguments
minuend (number): The first number in a subtraction. subtrahend (number): The second number in a subtraction.

Returns
(number): Returns the difference.

multiply(multiplier, multiplicand)#

Multiply two numbers.

Arguments
multiplier (number): The first number in a multiplication. multiplicand (number): The second number in a multiplication.

Returns
(number): Returns the product.

divide(dividend, divisor)#

Divide two numbers.

Arguments
dividend (number): The first number in a division. divisor (number): The second number in a division.

Returns
(number): Returns the quotient.


If you get stuck at a point above, please reach out to support@butternut.tech or via this form.
We're here to support you, and together we can build great things.