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

边栏推荐
- An error is reported when ActiveMQ is started. The 1883 port occupation problem is solved
- Lumiprobe ProteOrange 蛋白质凝胶染料说明书
- 618 activity season - the arrival of special discounts for hundreds of low code platforms
- 打破学科之间壁垒的STEAM教育
- ONEFLOW source code parsing: automatic inference of operator signature
- 今天开户今天能买股票吗?在线开户是安全么?
- Object tracking using tracker in opencv
- Is it reliable to open an account for the shares of Oriental Wealth software? Where is safe to open an account
- Operations research note
- Shanghai Pudong Development Bank Software Test interview real question
猜你喜欢

Yixin Huachen: real estate enterprises want to grasp the opportunity of the times for digital transformation

Lumiprobe非荧光炔烃研究丨DBCO NHS 酯

SMARCA2抗体研究:Abnova SMARCA2 单克隆抗体方案

Konva series tutorial 3: Customizing drawings

【Unity3D】相机跟随

匿名函数this指向以及变量提升

Chapter 2 processing files, cameras and GUI Cameo applications

China gaobang brand story: standing guard for safety, gaobang pays attention to

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

Analyzing the practical development of robot teaching
随机推荐
Graphic system - 2 View drawing
leetcode 1647. Minimum Deletions to Make Character Frequencies Unique(所有字母频率不同的最小删除次数)
几行代码就能实现复杂的 Excel 导入导出,这个工具类真心强大!
注意!PMP紧急缓考今天就截止了!
Chapter 2 processing files, cameras and GUI Cameo applications
An error is reported when ActiveMQ is started. The 1883 port occupation problem is solved
ONEFLOW source code parsing: automatic inference of operator signature
内存泄露
深入解析kubernetes中的选举机制
安装nodejs环境
use. NETCORE's own background job, which simply simulates producers and consumers' processing of request response data in and out of the queue
Detailed explanation of select in golang (forward)
CVPR2022 | 浙大、蚂蚁集团提出基于标签关系树的层级残差多粒度分类网络,建模多粒度标签间的层级知识
1 invalid import format(s) Postman Collection Format v1 is no longer supported and can not be import
Alist+RaiDrive 给电脑整个80亿GB硬盘
Openfire 3.8.2集群配置
devpi
[cloud resident co creation] shengteng heterogeneous computing architecture cann helps release the surging computing power of hardware
Database Experiment 7 integrity constraints
今天开户今天能买股票吗?在线开户是安全么?