Skip to main content

Posts

Showing posts from March, 2019

JS QA:3

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