How arrays and objects are copied in JavaScript?
First, we need to thoroughly understand two concepts.
Pass by value.
Pass by reference.
Pass by value
It simply means, While calling a function. You are passing values directly inside a function as an argument.
EG:
// function declaration
function ...
blog.aamchora.space2 min read