I am new to node.js and was going through an example could not understand app.set(\'title\', \'My Site\'); does please help?
You can use the express instance to store and retrieve variables. In this case, you can set the title to be "My Site" and retrieve it later with something like
var title = app.get('title');
without the need to declare and keep a global variable messing around.
The name of the parameter means nothing. You could do
app.set('jabberwocky', 'correct battery horse staples');
as well. If you're using express with jade, for example, you might need to retrieve the value of 'jabberwocky' in a template, further along the line.