I am new to JS and was learning value and reference types in JS but I faced some confusion on the below code:
You've just created z, which is a copy of obj.arr . If you change the value of z, the copy, the original (obj.arr) do not change.
I'm French that's why my english isn't perfect