0

Two scenarios:

  1. Function is called and data is computed and returned.
  2. Data is saved in variable, updated when required, data is retrieved from variable.

So I was wondering in what kind of scenarios one would be beneficial over the other?

0 Answers0