Advertisement
Guest User

Untitled

a guest
Sep 28th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. var ABC = ABC || function () { };
  2. ABC.YYY = function () {
  3. var something = "cool";
  4. var another = [1, 2, 3];
  5.  
  6. doSomething = function() {
  7. console.log(something);
  8. };
  9.  
  10. doAnother = function() {
  11. console.log(another.join(" ! "));
  12. };
  13.  
  14. return {
  15. doSomething: doSomething,
  16. doAnother: doAnother
  17. };
  18. }();
  19.  
  20. var ABC = ABC || function () { };
  21. ABC.YYY = function () {
  22. var something = "cool";
  23. var another = [1, 2, 3];
  24.  
  25. var doSomething = function() {
  26. console.log(something);
  27. };
  28.  
  29. var doAnother = function() {
  30. console.log(another.join(" ! "));
  31. };
  32.  
  33. return {
  34. doSomething: doSomething,
  35. doAnother: doAnother
  36. };
  37. }();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement