How to remove express deprecation warning

Posted by : Leo T Abraham on 20 July, 2013

I got the following warning:

Warning: express.createServer() is deprecated, express applications no longer inherit from http.Server, please use:
var express = require("express");
 var app = express();

In order to clear this issue:

Change var app = express.createServer(); to var app = express();