require() working as I like
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
Console.print('test included');
|
||||
|
||||
var x = 1 + 2;
|
||||
|
||||
module.exports = {
|
||||
str: function() {
|
||||
return x.toString();
|
||||
},
|
||||
increment: function() {
|
||||
x++;
|
||||
},
|
||||
decrement: function() {
|
||||
x--;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user