access array last index element code example Example: javascript get last element in array //im here because the ad