I am learning about side-effects in functional programming. I know that external effects are effects that are observable outside the function, whereas internal effects are not visible from the outside. I would like to know whether modifying local variables is an external or internal effect.
Since local variables are only accessible within the function and are not visible to the outside world, I believe that modifying local variables is an example of an internal effect, since it's not observable to the outside world.
However, I am not sure if my reasoning is correct. Any insights are appreciated.