title: Make a request every one minute with Node.js
body: <p>I began to develop in <code>Node.js</code> today and I think an application that performs several requests to know the server uptime. I need <b>every request completion the function is performed again</b> as a while loop. 
  <br>Is it possible to do this in Node.js?</p>
  
  <p>My basic code </p>
  
  <pre><code>var http = require('http');
  var request = require('request');
  
  request({
      url: "http://www.google.com",
      method: "GET",
      timeout: 10000,
      followRedirect: true,
      maxRedirects: 10
  },function(error, response, body){
      if(!error &amp;&amp; response.statusCode == 200){
          console.log('sucess!');
      }else{
          console.log('error' + response.statusCode);
      }
  });
  </code></pre>
  
  <p>PS : Sorry if it's a stupid question or duplicate</p>