My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

Is it a bad practice to mutate the arguments passed into a function?

Default profile photo
Anonymous
·Apr 18, 2018

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?