Example to demonstrate slice() method.
slice(1,3) to show items starting from index 1 up to 3:
Array of employees: