UNPKG
baobao_with_papa
Version:
latest (1.0.0)
1.0.0
baobao_is_my_favorite_shero
19940608/partof
baobao_with_papa
/
testmodule
/
klass.js
12 lines
(10 loc)
•
248 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
var
student=
require
(
'./student'
)
var
teacher=
require
(
'./teacher'
)
function
add
(
teacherName,students
){ teacher.
add
(teacherName) students.
forEach
(
function
(
item,index
){ student.
add
(item) }) }
exports
.
add
=add;
// module.exports=add;