node.js - basic
This commit is contained in:
8
nodejs/practice2/calc.js
Normal file
8
nodejs/practice2/calc.js
Normal file
@@ -0,0 +1,8 @@
|
||||
const add = (a, b) => a + b;
|
||||
const sub = (a, b) => a - b;
|
||||
|
||||
module.exports = {
|
||||
moduleName: "calc module",
|
||||
add: add,
|
||||
sub: sub,
|
||||
}
|
||||
Reference in New Issue
Block a user