node.js - basic
This commit is contained in:
9
nodejs/practice/math-tools.js
Normal file
9
nodejs/practice/math-tools.js
Normal file
@@ -0,0 +1,9 @@
|
||||
let calculator = {
|
||||
PI : 3.14,
|
||||
add : (a, b) => a + b,
|
||||
subtract : (a, b) => a - b,
|
||||
multiply : (a, b) => a * b,
|
||||
divide : (a, b) => a / b
|
||||
}
|
||||
|
||||
module.exports = calculator;
|
||||
Reference in New Issue
Block a user