How do I push array into a new Array. For example
var arr = ['one','two','three'];
var newArr = [];
Now I want newArr[0] = ['one','two','three']
I have tried using push
function but it pushes all the elements of arr
into newArr
. I want to push the entire arr
as it is in newArr