4 ms·One way to make an immutable constant: function rentAmountDollars() { return 600; }by ape4 12y agoOne way to make an immutable constant: function rentAmountDollars() { return 600; }thekaleb 12y agoThis will work with pass-by-value primitives, but not pass-by-reference objects unless the getter re-creates the object for every get action.i_s 12y agorentAmountDollars = function() { return 601; }