Let's begin JavaScript Question Answers: Q1: How to create a copy of array and create a new reference for new object? We can simply make it's length =0 as a result the array reference and array would be removed. we can initialize array again to empty array but still reference would be left so we need to make it's length =0 See result on jsfiddle
Let's begin JavaScript Question Answers: Q1: How to delete the array with it's reference? We can simply make it's length =0 as a result the array reference and array would be removed. we can initialize array again to empty array but still reference would be left so we need to make it's length =0 See result on jsfiddle