javascript get last element of a int code example Example: last item in array javascript // Find the last item in an array. arrayName[arrayName.length - 1]