Guest User

Untitled

a guest
Apr 23rd, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. var foo = ""
  2. var bar = ""
  3.  
  4. start();
  5. final();
  6.  
  7. //###########################
  8.  
  9. function start() {
  10. something_1();
  11. something_2();
  12. }
  13.  
  14. function something_1() {
  15. anything_A(params, function(err, data){ foo = "hello" });
  16. }
  17.  
  18. function something_2() {
  19. anything_B(params, function(err, data){ bar = "world" });
  20. }
  21.  
  22. fucntion final() {
  23. console.log(foo + " " + bar);
  24. }
Add Comment
Please, Sign In to add comment