diff --git "a/\346\235\250\351\221\253\344\273\252/20230214\344\275\234\344\270\232/demo.js" "b/\346\235\250\351\221\253\344\273\252/20230214\344\275\234\344\270\232/demo.js" new file mode 100644 index 0000000000000000000000000000000000000000..792e5bfd193dfa2e1e8bf55d823c35c5d6456ec1 --- /dev/null +++ "b/\346\235\250\351\221\253\344\273\252/20230214\344\275\234\344\270\232/demo.js" @@ -0,0 +1,7 @@ +var greet=require("./demo1"); +var a=10; +var b=5; +console.log(greet.add(a,b)); +console.log(greet.jian(a,b)); +console.log(greet.cheng(a,b)); +console.log(greet.chu(a,b)); \ No newline at end of file diff --git "a/\346\235\250\351\221\253\344\273\252/20230214\344\275\234\344\270\232/demo1.js" "b/\346\235\250\351\221\253\344\273\252/20230214\344\275\234\344\270\232/demo1.js" new file mode 100644 index 0000000000000000000000000000000000000000..93e9a57187b4cdaaff0fc4ee6c7d1891086dfa0e --- /dev/null +++ "b/\346\235\250\351\221\253\344\273\252/20230214\344\275\234\344\270\232/demo1.js" @@ -0,0 +1,17 @@ + +function add(a,b){ +return a+b; +} +function jian(a,b){ + return a-b; +} +function cheng(a,b){ + return a*b; +} +function chu(a,b){ + return a/b; +} +module.exports.add=add; +module.exports.jian=jian; +module.exports.cheng=cheng; +module.exports.chu=chu;