Course · Section 11: Working With Arrays · Lecture 149: Simple Array Methods
Implement `moveZeros(arr)` returning a new array with all non-zero values in their original order followed by all the zeros.
+ 1 hidden test run on Submit.
Filtering out zeros preserves order, and padding with the removed count of zeros pushes them to the end.
Run your code to see results.