Is it a bad practice to mutate the arguments passed into a function?
Anonymous
My colleagues advised me not to do it as it may create side-effects. However, I don't understand side effects and this argument. Could someone help me understand how modifying arguments inside a function can create side effects?