How to copy one array to another in javascript?
const name1 = ['Sujal','Nitin','Aman','Harshit']; const name2 = name1; // this does not copy rather...
Tags: javascript, arrays