I have a question about array.push() method.
Can someone explain the difference in these two lines of code.
// testArr = myArray.push(arr.slice(i,(size+i)));
//Line 2: testArr.push(arr.slice(i, (size+i)));
Link to Code:
I tried numerous different ways to come to the solution but just stumbled onto the answer almost by accident.