课程代码

This commit is contained in:
zpooi
2025-12-03 23:08:39 +08:00
commit 290f629d2c
63 changed files with 7065 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
// 属性
const author = "harry";
// 方法
function greet(name) {
return `Hello, ${name}`;
}
function add(a, b) {
return a + b;
}
// 共享属性 author 和 greet()、add()方法
module.exports = {
author,
greet,
add
};