当前位置:网站首页>Modular operation
Modular operation
2022-06-28 18:45:00 【qq_ forty-six million one hundred and ninety-eight thousand nin】

package.json
{
"name": "moduledemo",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC"
}
01.js
const sum=function(a,b){
return parseInt(a)+parseInt(b)
}
const subtract=function(a,b){
return parseInt(a)-parseInt(b)
}
module.exports={
sum,
subtract
}
02.js
const m=require('./01.js')
console.log((m.sum(6,5)))
console.log((m.subtract(6,5)))

边栏推荐
- About the solution of "modulenotfounderror: no module named 'flask.\u compat'"
- MindSpore系列一加载图像分类数据集
- Qt 中 QObjectCleanupHandler 使用总结
- id门禁卡复制到手机_怎么把手机变成门禁卡 手机NFC复制门禁卡图文教程
- 匿名函数变量问题
- FFmpeg学习总结
- Lumiprobe 蛋白质标记研究方案
- Learning notes: how to time 10ms for 51 single chip microcomputer (STC89C52)
- 百度时间因子添加
- ANR Application Not Responding
猜你喜欢

Advanced technology management - how managers communicate performance and control risks

Professor Michael Wooldridge of Oxford University: how the AI community views neural networks in the past 40 years

【Unity3D】发射(RayCast)物理射线(Ray)

独立站卖家如何高效管理复杂的Facebook主页?

Konva series tutorial 3: Customizing drawings

图形系统——1. 布局加载

从知名软件提取出的神器,吊打一众付费

使用.NetCore自带的后台作业,出入队简单模拟生产者消费者处理请求响应的数据

618活动季——百数低代码平台特享折扣来临

【软件测试】2022年普通高等学校招生全国统一考试
随机推荐
电子商务盛行,怎么提高商店转换率?
POI Excel转换工具
postgresql数据库docker
curl: (56) Recv failure: Connection reset by peer
1 invalid import format(s) Postman Collection Format v1 is no longer supported and can not be import
memory thrashing
idea其他分支合并到dev分支
konva系列教程3:自定义图形
Alist+RaiDrive 给电脑整个80亿GB硬盘
Easyexcel learning notes
声网 VQA:将实时互动中未知的视频画质用户主观体验变可知
1 invalid import format(s) Postman Collection Format v1 is no longer supported and can not be import
19.2 容器分类、array、vector容器精解
Three communication skills in software testing
使用.NetCore自带的后台作业,出入队简单模拟生产者消费者处理请求响应的数据
亿信华辰:地产企业数字化转型想要把握时代机遇
Seata implementation of sharing JDBC distributed transaction
select/poll/epoll
Shell 未知汇总1
ONEFLOW source code parsing: automatic inference of operator signature