MACHIN
This commit is contained in:
4
3/app.js
Normal file
4
3/app.js
Normal file
@@ -0,0 +1,4 @@
|
||||
const welcome = require('./welcome');
|
||||
|
||||
welcome.getMorningMessage();
|
||||
welcome.getEveningMessage();
|
||||
1
3/evening.js
Normal file
1
3/evening.js
Normal file
@@ -0,0 +1 @@
|
||||
module.exports = 'Добрый вечер';
|
||||
11
3/index.js
Normal file
11
3/index.js
Normal file
@@ -0,0 +1,11 @@
|
||||
const morning = require('./morning');
|
||||
const evening = require('./evening');
|
||||
|
||||
module.exports = {
|
||||
getMorningMessage: function () {
|
||||
console.log(morning);
|
||||
},
|
||||
getEveningMessage: function () {
|
||||
console.log(evening);
|
||||
},
|
||||
};
|
||||
1
3/morning.js
Normal file
1
3/morning.js
Normal file
@@ -0,0 +1 @@
|
||||
module.exports = 'Доброе утро';
|
||||
Reference in New Issue
Block a user