If creating a reference to an object, and the reference is not going to change (even though the object will), is it better to use const instead of var?
For example:
const moment = require('moment') exports.getQuotation = function(value) { const quotation = {}; quotation.value = value; quotation.expiryDate = moment().add(7, 'days'); // Do some other stuff with quotation perhaps return quotation; };
constandletare pretty much final