You are viewing a single comment's thread from:
RE: Share your favorite code snippet
var port = process.env.PORT || 8000
It's just so fancy using the pipes to set a default value when the initial value is undefined.
var port = process.env.PORT || 8000
It's just so fancy using the pipes to set a default value when the initial value is undefined.
Good example! Ty