I have been doing Node.js and front-end Javascript long enough so that I should know the answer to this.
Say I have an object literal like this:
       'lectal_api_server': {
            host: 'https://xyz.herokuapp.com',
            port:  process.env.PORT || 80,
            url:  'https://xyz.herokuapp.com:80'
        }
is it possible to do something like this:
      'lectal_api_server': {
            host: 'https://xyz.herokuapp.com',
            port:  process.env.PORT || 80,
            url:   this.host + ':' + this.port
         }
I don't believe something like this is possible with ES5 but is it possible with ES6?
 
     
    