title: In Hapi.js server is not starting
body: <pre><code>const Hapi=require('hapi');
  
  //Init server
  const server=new Hapi.Server();
  
  //Add connection
  server.connection({
      port:3000,
      host:'localhost'
  });
  
  //Home route
  
  server.route({
      method:'GET',
      path:'/',
      handler:(request,reply)=&gt;{
          reply('Hello World');
  }
  })
  
  
  
  // Start Server
  server.start((err) =&gt; {
      if(err){
          throw err;
      }
  
      console.log(`Server started at: ${server.info.uri}`);
  });
  </code></pre>
  
  <blockquote>
    <p>Blockquote
    This is my first hapi.js server for printing hello world in home page but shows server.connection is not a function and also handlers are not promising.
    Plz help me.</p>
  </blockquote>