How can I push the values of arr1 into the arr2 ?
P.S. I know could simply accomplish this with:
arr2 = arr1 or var arr2 =[...arr1]
or by using similar solutions instead I want to push the arr1 values into the empty arr2 as seen below and without touching the arr2 at all.
This var arr2 = []; MUST be left as it is.
var arr1 = [33, 45, -10, 15, 5, 7, -5, 1, -30];
var arr2 =[];
console.log(arr2);
// This should output: (9) [33, 45, -10, 15, 5, 7, -5, 1, -30]
// and NOT [Array(9)]