how to return a number to an array in javascript code example Example: js get elements in array from x to y arr.slice([início[,fim]])