Quantcast
Channel: What does the second bracket in "var app = require('express')()" do? - Stack Overflow
Viewing all articles
Browse latest Browse all 3

What does the second bracket in "var app = require('express')()" do?

$
0
0

I'm quite new at the express framework.

I looked up at the Socket.io website for a quick start and I saw this statement at "Using with the Express 3 web framework". And in this line of the code snippet

var app = require('express')()

what does the second bracket use for?

Thanks in Advance


Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles





Latest Images