UNPKG
szhmqdcsfcalc
Version:
latest (1.1.1)
1.1.1
1.0.1
csfcalc
szhmqdcsfcalc
/
calc.js
11 lines
(6 loc)
•
260 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
const
path =
require
(
'path'
)
const
add =
require
(path.
join
(__dirname,
'add.js'
))
const
subobj =
require
(path.
join
(__dirname,
'sub.js'
))
console
.
log
(
`加法的结果是
${add(
2
,
3
)}
`
);
console
.
log
(
'----------------------'
);
console
.
log
(subobj.
name
);