Error on starting corrected: Warning: express.createServer() is deprecated

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