node package manager

math2

An example of creating a package

math package

The following functions are avaiable in the math package.

  • addition Add two numbers and returns the result.
  • subraction Subtracts the second number from the first and returns the result.
  • mutiplication Multiplies two numbers and returns the result.
  • division Divides the first number by the second number and returns the result.
  • fibonacci Applies the fibonacci sequence count times and reutrn the result.