node.js - basic

This commit is contained in:
haerong22
2022-04-12 00:15:05 +09:00
parent ef6ebca959
commit 8095c43d5e
12 changed files with 58 additions and 0 deletions

View 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;