Should it be mutable or not? Seems reasonable to answer up front by choosing const or let.
What are other considerations?
What are other considerations?
But thinking through the example
function expectedRevenuePerAttempt() {
(const/let) successRate = success / attempt;
return successRate * revenuePerSuccess
}I would prefer to use const there.