UNPKG
calc_with_square_and_cube
Version:
latest (1.0.0)
1.0.0
Simple calculator with square and cube functionality
calc_with_square_and_cube
/
index.js
8 lines
•
175 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
module
.
exports
.
Calculator
=
function
(
){
this
.
square
=
function
(
no
){
return
no * no; }
this
.
cube
=
function
(
no
){
return
no * no * no; } }