which function is used to exatract section of array and return new array code example Example: array cut only last 5 element arr.slice(Math.max(arr.length - 5, 0))