var defaultValues = {
repayment: [],
creditAmount: {
val: $creditAmount.val()
},
monthPayment: {
val: $monthPayment.val()
},
creditTerm: {
val: $period.val()
},
creditRate: {
val: function() {return typeof defaultValues.creditTerm.val === 'undefined' ?
"не определено" : 0.19 / defaultValues.creditTerm.val }
},
pay: 0,
term: 0
};
defaultValues.creditRate.val() // получение значения