Consider the following code in JavaScript-
var DEFAULT_RATE=0.01; var rate=0.04; function getRate(){ if(!rate) { var rate=DEFAULT_RATE; } return rate; } console.