• Sign in
  • Sign up 
  • Welcome
  • FAQ
  • Switch to Night Mode
  • Stolen Accounts Recovery 
  • Change Account Password 
  • Vote for Witnesses 
  • Steem Proposals 
  • Third-party exchanges:
  • Poloniex 
  • Advertise 
  • Jobs at Steemit 
  • Developer Portal 
  • Steem Bluepaper 
  • SMT Whitepaper 
  • Steem Whitepaper 
  • Privacy Policy
  • Terms of Service
Home
LoginSign up
You are viewing a single comment's thread from:

RE: Share your favorite code snippet

  • View the full context
adnanrahic (53)in #programming • 9 years ago

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.

9 years ago in #programming by adnanrahic (53)
$0.00
    1 vote
    • + grider123
    Reply 1
    Sort:  
  • Trending
    • Trending
    • Votes
    • Age
  • [-]
    grider123 (62)
     9 years ago 

    Good example! Ty

    $0.00
      Reply