sandro1234

Untitled

Jun 16th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var request = require('request');
  2.  
  3. d=0;
  4. console.log("here");
  5. request('http://www.google.com', function (error, response, body) {
  6.   console.log('error:', error); // Print the error if one occurred
  7.   console.log('statusCode:', response && response.statusCode); // Print the response status code if a response was received
  8.   console.log('body:', body); // Print the HTML for the Google homepage.
  9.   d=1;
  10. });
  11. console.log("now here");
  12. while(d==0){}
  13. console.log("did it!");
Add Comment
Please, Sign In to add comment