title: confused about javascript code "require('./config/passport')(passport);"
body: <p>I am fairly new to javascript and am trying to make a simple login restful api with the passport middleware. I know that when i do require('xxxxx'); I am bringing a module in for use. </p>
  
  <p>I found some code online and it has this line
  "require('./config/passport')(passport);"</p>
  
  <p>I am wondering what it does and how this line differs from just doing
  "require(passport);"?</p>
  
  <p>Any help would be appreciated.</p>