“cannot be used as a function error”

You are using growthRate both as a variable name and a function name. The variable hides the function, and then you are trying to use the variable as if it was the function – that is not valid.

Rename the local variable.

Leave a Comment