UNPKG
@zendap/just_calculator1
Version:
latest (1.0.1)
1.0.1
1.0.0
Simple calculator with add and mult functionality
@zendap/just_calculator1
/
index.js
9 lines
(8 loc)
•
180 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
module
.
exports
.
Calculator
=
function
(
){
this
.
add
=
function
(
no1,no2
){
return
no1+no2; },
this
.
mult
=
function
(
no1,no2
){
return
no1*no2; } }