JavaScript Pass by Value and Pass by Reference - Simplified
Based upon Datatype, JavaScript passes a value of a variable using two ways:
Using Pass by Value
Using Pass by Reference
Pass by Value
When you pass primitive data types (such as numbers, strings, or booleans) to a function, a copy of the actual ...
jaytillu.hashnode.dev2 min read