What is the use of var app = express(); in the process of creating a Node.Js Application?
<p>I am new to the world of Node.js.I am trying to learn through an example.I have encountered the following statements in the "app.js" .</p>

<pre><code>  var express = require("express");-----&gt;1
  var app = express(); ---------&gt;2 
</code></pre>

<p>So I understand the first statement is to load express module .What is the need for second statement??</p>

<p>Inorder to load a MYSQL module in my app.js we use </p>

<pre><code> var mysql = require("MYSQL");
</code></pre>

<p>We access SQL properties by mysql.connect("") etc.</p>

<p>so why cannot we write  "express.get()" instead of "app.get()"????</p>

<p>Why do we need var express = require("express");??</p>

<p>Any help would be highly appreciated.</p>