justabasiccalculator

Just a script of a basic calculator that do 4 operations: plus, division, times and subtraction.

$1/mo

0 downloads
rianbarbosa

Just a Basic Calculator

Just a script of a basic calculator that do 4 operations: plus, division, times and subtraction.

How to use:

  • To use plus just call, plus(num1, num2)
  • To use division just call, divide(num1, num2)
  • To use times just call, times(num1, num2)
  • To use subtracion just call, sub(num1, num2)

Usage example

var justabasiccalculator = require("justabasiccalculator")

const example = justabasiccalculator.plus(num1, num2); 

Or

import { plus } from 'justabasiccalculator';

const example = plus(num1, num2);

This is a package created for learning purposes!!

Monetize your
open-source work

Supercharge your OSS projects by selling npm packages. Get started in just 5 minutes.