Advertisement
Guest User

Untitled

a guest
Dec 19th, 2014
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function test(){
  2.   var response = "not global";
  3.   callback(function(){
  4.       if(undefined === typeof response){
  5.          console.log("nope");
  6.       }else{
  7.           console.log(response);
  8.       }
  9.   });  
  10. }
  11.  
  12. function callback(f){
  13.  f();  
  14. }
  15.  
  16. test();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement