daily pastebin goal
48%
SHARE
TWEET

Untitled

a guest Oct 12th, 2017 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // index.js
  2.  
  3. const classe = require('./classe.js');
  4. const classe2 = require('./classe.js');
  5.  
  6. classe.set("fodase");
  7.  
  8. console.log( classe.get() );
  9. console.log( classe2.get() );
  10.  
  11. // classe.js
  12.  
  13. let attr;
  14.  
  15. module.exports = {
  16.   attr: '',
  17.   set: str => attr = str,
  18.   get: () => attr
  19. };
RAW Paste Data
Top