当前位置:网站首页>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)))

边栏推荐
- Memory leak
- 第2章 处理文件、摄像头和图形用户界面cameo应用
- 匿名函数this指向以及变量提升
- 浅谈软件研发的复杂性与效能提升之道
- CVPR2022 | 浙大、蚂蚁集团提出基于标签关系树的层级残差多粒度分类网络,建模多粒度标签间的层级知识
- Lumiprobe 蛋白质标记研究方案
- 使用.NetCore自带的后台作业,出入队简单模拟生产者消费者处理请求响应的数据
- Sharing-JDBC分布式事务之Seata实现
- Sword finger offer 11 Minimum number of rotation array
- 1 invalid import format(s) Postman Collection Format v1 is no longer supported and can not be import
猜你喜欢

Michael Wooldridge, professeur à l'Université d'Oxford: comment la communauté de l'IA voit les réseaux neuronaux depuis près de 40 ans

闭包的理解

Sword finger offer 11 Minimum number of rotation array

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

About Critical Values

Lumiprobe ProteOrange 蛋白质凝胶染料说明书

进阶高级-业务事务设计 开发入门

解析机器人主持教学的实践发展

Voice network VQA: make the user's subjective experience of unknown video quality in real-time interaction known

微软独家付费功能,也被完美解锁了
随机推荐
1 invalid import format(s) Postman Collection Format v1 is no longer supported and can not be import
亿信华辰:地产企业数字化转型想要把握时代机遇
render函数解析
select/poll/epoll
Lumiprobe ProteOrange 蛋白质凝胶染料说明书
闭包的理解
基于固态激光雷达辅助的十六线机械雷达和单目相机的外参标定方法
Openfire 3.8.2集群配置
Learning notes: how to time 10ms for 51 single chip microcomputer (STC89C52)
CVPR2022 | 浙大、蚂蚁集团提出基于标签关系树的层级残差多粒度分类网络,建模多粒度标签间的层级知识
匿名函数this指向以及变量提升
原生实现.NET5.0+ 自定义日志
手动备份和还原DHCP服务器
POI Excel转换工具
推荐两款超高质量的壁纸软件
几行代码就能实现复杂的 Excel 导入导出,这个工具类真心强大!
[cloud resident co creation] shengteng heterogeneous computing architecture cann helps release the surging computing power of hardware
【Unity3D】发射(RayCast)物理射线(Ray)
图形系统——2.view绘制
io模型初探