I_Jemin

Export Single Function

1 -var logger = require('./logger') 1 +const log = require('./logger')
2 2
3 -logger.log('message');
...\ No newline at end of file ...\ No newline at end of file
3 +
4 +log('message');
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -5,4 +5,4 @@ function log(message) { ...@@ -5,4 +5,4 @@ function log(message) {
5 console.log(message); 5 console.log(message);
6 } 6 }
7 7
8 -module.exports.log = log;
...\ No newline at end of file ...\ No newline at end of file
8 +module.exports = log;
...\ No newline at end of file ...\ No newline at end of file
......