The plus sign is a unary operator, and it loops process.env.PORTover the number from the string.
Background:
process.env.PORT = 'somePortSavedAsSTring';
process.env.PORTshould be a string, and if nothing is done, node will throw an error. Using a character +prevents this, essentially by adding a line (which changes it from line to number) to zero.
port = ( nothing ) + 'somePortSavedAsSTring';
port = +'somePortSavedAsSTring';
Using the plus sign is simply an eloquent way to provide a variable type. You can use:
var PORT = Number(process.env.PORT) || 1337;
. .