Movendo zeros para o fim
function moveZeros(arr) {
let newArr = []
for (let i = 0; i < arr.length; i++) {
if (arr[i] !== 0) {
newArr.push(arr[i])
}
}
for (let i = 0; i < arr.length; i++) {
if (arr[i] === 0) {
newArr.push(arr[i])
}
}
return newArr
ABS